[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: printf vs printk



> >         the funda on printf vs printk(WHY???)

printf is used for user programs whereas printk is
meant mostly for logging of kernel messages. Based on
the level of priority printk can be used to send
output to kernel logger or on stdout. printk does not
supports float.
 Use printk only if you are developing kernel modules.

for better idea consult:-
 Beginning Linux Programming(Wrox)

CHEERS
Santosh

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/