Re: Hi Start_kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



printf is a libarary function, while printk is implemented in kernel itself since kernel doesnt use library functions.
printf displays on STD output, while printk logs the messages and kernel log demon displays that content on the screen.
Apart from this, you can also pass the priority of the message to printk.
 
Hope it helps

 
On 11/15/07, Erik Mouw <mouw@xxxxxxxxxxxx> wrote:
On Thu, Nov 15, 2007 at 08:03:17AM -0600, Linto Poulose E wrote:
> What is the differnce between printf and printk

Easy: printf() is for userspace, printk() is for kernel space.


Erik

--
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHPIu4/PlVHJtIto0RAmccAJ9IBh0UPBQB6VVaZpLhriOh03qwmACcCwe4
fSinyFk/8pdPE1QKP/WCFx0=
=MUcv
-----END PGP SIGNATURE-----



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux