Thread: Difference between printf and printk

  1. #1
    kotin
    Join Date
    Oct 2009
    Posts
    132

    Difference between printf and printk

    Hi ,

    Any body give me clarity deference between printf and printk.

    1.where we use printk.

    i appreciate any response

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    One of many pages as a result of a simple google search!
    printk()
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    printk is a kernel mode function to allow printf-like usage in driver modules. Dont use it anywhere else

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. putchar vs. printf. why difference in output?
    By alter.ego in forum C Programming
    Replies: 3
    Last Post: 04-05-2011, 10:33 PM
  2. what is the difference between %# and % in printf
    By transgalactic2 in forum C Programming
    Replies: 1
    Last Post: 10-07-2008, 11:08 PM
  3. Replies: 7
    Last Post: 03-26-2008, 03:21 AM
  4. make printf using printf?
    By germaneater in forum C Programming
    Replies: 9
    Last Post: 11-10-2004, 10:58 PM
  5. difference between cout and printf
    By Shadow12345 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2002, 09:27 AM