Skip to contentSkip to conversation

Large block device patch, part 1 of 9

DISCUSSION Giacomo Catenazzi 2 participants 3 messages Dec 3, 2002 2 messages not in the archive

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive
Quoted 3 lines · H. Peter Anvin

While we're talking about printk()... is there any reason *not* to rename it printf()?

kprintf would be better, maybe addind the first argument for verbosity level, instead of being "inlined" in the string. But it is a 2.7 change!

ciao
giacomo

#3 lore raw
Quoted 3 lines · Giacomo Catenazzi

kprintf would be better

Why? We don't have, say, kstrcpy() or ksscanf() for other functions that are library-equivalent.

-hpa

#4 lore raw
Quoted 8 lines · H. Peter Anvin
Quoted 4 lines · Giacomo Catenazzi

kprintf would be better

Why? We don't have, say, kstrcpy() or ksscanf() for other functions that are library-equivalent.

k to remember people that it is not the std function, thus not a write to the standard output. I see more like fprintf (file) and [v]sprintf (string), we write to a special buffer ("klog").
But if we don't move the verbosity level out of string, also the simple 'printf' would be fine.

ciao
giacomo