LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-23-2006, 07:18 AM   #1
bhuvanmital
LQ Newbie
 
Registered: Dec 2005
Posts: 23

Rep: Reputation: 15
Kernel alternative for vsprintf


Can anyone tell me what to use instead of command vsprintf while coding for a Kernel level USB device driver.

The function : int vsprintf(char *str, const char *format, va_list ap); works only at user level coz the file stdio.h has to be included. but this file is not available at kernel level. I'm stuck with this problem.

What other function can i use which uses the same parameters and does the same job of formatted printf.
 
Old 02-23-2006, 10:20 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,369
Blog Entries: 4

Rep: Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178
Hmm... the kernel is chock-full of examples. They build up the string in a buffer piece by piece.
 
Old 02-23-2006, 08:53 PM   #3
bhuvanmital
LQ Newbie
 
Registered: Dec 2005
Posts: 23

Original Poster
Rep: Reputation: 15
Didn't get that. Please gimme an example. I am looking for a kernel level substitute for vsprintf or vsnprintf..
 
Old 02-26-2006, 09:23 PM   #4
bhuvanmital
LQ Newbie
 
Registered: Dec 2005
Posts: 23

Original Poster
Rep: Reputation: 15
can some one help me with the vsprintf alternative command at kernel level please??
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Alternative to vi anjanesh Linux - Newbie 23 03-30-2014 05:06 PM
No Alternative to MS? nuka_t General 6 01-14-2005 12:32 PM
Alternative kernel source trees semicolon Linux - General 1 12-22-2003 09:00 PM
du alternative plisken Linux - General 3 07-09-2003 10:28 PM
Alternative kernel on mdk8.2 bootdisk? rooman Linux - Distributions 3 11-08-2002 05:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration