Difference between printf and printk

This is a discussion on Difference between printf and printk within the Linux Programming forums, part of the Platform Specific Boards category; Hi , Any body give me clarity deference between printf and printk. 1.where we use printk. i appreciate any response...

  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
    32,849
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    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, 11:33 PM
  2. what is the difference between %# and % in printf
    By transgalactic2 in forum C Programming
    Replies: 1
    Last Post: 10-08-2008, 12:08 AM
  3. Replies: 7
    Last Post: 03-26-2008, 04: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, 10:27 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21