LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-22-2004, 09:27 PM   #1
cd7809
LQ Newbie
 
Registered: Oct 2003
Posts: 9

Rep: Reputation: 0
'err()' and 'info()' problems in usb.c?


When I read the usb.c, I can not find out which header file include and realize the 'err()' and 'info()' functions, so anybody can tell me which header file 'err()' and 'info()' locate?

Any form of your help will be appreciated, thanks!
 
Old 02-22-2004, 09:33 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
They are in include/linux/usb.h in the source tree.....

Code:
#define err(format, arg...) printk(KERN_ERR "%s: " format "\n" , __FILE__ , ## arg)
#define info(format, arg...) printk(KERN_INFO "%s: " format "\n" , __FILE__ , ## arg)
#define warn(format, arg...) printk(KERN_WARNING "%s: " format "\n" , __FILE__ , ## arg)
 
Old 02-22-2004, 10:39 PM   #3
cd7809
LQ Newbie
 
Registered: Oct 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Wink

very thanks!!!
 
Old 02-23-2004, 04:36 AM   #4
shishir
Member
 
Registered: Jul 2003
Location: bangalore . india
Distribution: openSUSE 10.3
Posts: 251

Rep: Reputation: 33
you know ..while getting people to solve the problems by putting exact answers here is the easy way out, it would be better if you tried doing a little research, it is a lot more satisfying when you locate the solutions with your own effort, trust me on that....

and there is no knowing what else you might end up knowing cos of your efforts..

this is again from my personal experience...

try to use a lot of code browser tools, like ctags, and cscope, or if you are a GUI freak, Source Navigator, would do your knowledge a world of good...

these tools are there to help you out when you are stuck...

then, there is a linux code cross reference site that you can always goto to look for what you are looking for.

i understand that you are a newbie and welcome to the forum...
..
hope i have helped
 
Old 02-23-2004, 06:24 AM   #5
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
And you forgot the most useful tool of all, grep That is how I found it
 
Old 03-04-2004, 08:58 PM   #6
cd7809
LQ Newbie
 
Registered: Oct 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks shishir, and thanks jtshaw!
 
  


Reply



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
SCSI info when i plug in USB Drive cryptoX Linux - Newbie 1 07-18-2005 12:12 PM
Dual system boot err: rootnoverify(hd1,0),but the hd0 err msg existed befor shut down lilipeng24 Linux - General 3 06-25-2005 12:10 PM
USB problems: Memorex USB stick 256MB and PSX to USB adapter by Radio Shack Knuckles T15 Linux - Hardware 1 05-19-2004 06:58 PM
Free USB Wifi Adaptor and Driver info DevilsBrigade Linux - Laptop and Netbook 0 01-22-2004 02:20 PM
Ghostscript problems info UB_KMA Slackware 0 07-20-2002 09:42 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:42 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