Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > The Linux Kernel
Reload this Page device driver problem
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

The Linux Kernel Compiling, theory, programming or other discussion about the linux kernel

Reply
 
Thread Tools Display Modes
Old 05-14-2008   #1 (permalink)
jlam
Just Joined!
 
Join Date: May 2008
Posts: 9
device driver problem

I try to write a device driver for usb device. However, I use
Code:
printk(".....");
It cannot print any message in terminal.

Anyone can tell me why? and how can I print the debug message on terminal for device driver?

Thanks!
jlam is offline   Reply With Quote
Old 05-14-2008   #2 (permalink)
bobescalin2005
Linux Newbie
 
bobescalin2005's Avatar
 
Join Date: Oct 2005
Location: Romania
Posts: 109
What language are you using for writing driver for devices?
Cheers!
__________________
Registered Linux user #471256
http://counter.li.org
Don`t give up so easy...
calin
bobescalin2005 is offline   Reply With Quote
Old 05-14-2008   #3 (permalink)
jlam
Just Joined!
 
Join Date: May 2008
Posts: 9
C language~
jlam is offline   Reply With Quote
Old 05-15-2008   #4 (permalink)
digvijay.gahlot
Just Joined!
 
Join Date: Mar 2008
Location: Hyderabad
Posts: 88
printk doesn't print messages on X Windows. Press Ctrl + Alt + F1 and login to your account. Here you can see printk work.
If priority of message is less than default console log level then also it is not displayed. You can increase priority by using KERN_ALERT tags in front. eg
printk(KERN_ALERT "This will be displayed\n");
All your printk are stored in /var/log/messages even if they are not printed.
Visit here to know more:-
https://lwn.net/images/pdf/LDD3/ch04.pdf
Page 4
digvijay.gahlot is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 11:40 AM.

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0