Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    device driver problem

    I try to write a device driver for usb device. However, I use
    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?


  2. #2
    What language are you using for writing driver for devices?
    Registered Linux user #471256
    Don`t give up so easy...

  3. #3
    C language~

  4. $spacer_open
  5. #4
    Linux Newbie
    Join Date
    Mar 2008
    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:-
    Page 4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts