printk %%

From: Ferenc Wagner
Date: Tue Feb 12 2008 - 15:41:55 EST


Hi,

Looking at http://lxr.linux.no/linux/lib/vsprintf.c#L549 (where
vsnprintf in linux/lib/vsprintf.c parses the % format specifier)
suggests that the printk format string in
http://lxr.linux.no/linux/drivers/ide/setup-pci.c#L657 is correct:

printk(KERN_INFO "%s: not 100%% native mode: "
"will probe irqs later\n", d->name);

Still, in my kern.log the percent sign is doubled:

ICH4: not 100%% native mode: will probe irqs later

Why?
--
Regards,
Feri.

(Please Cc: me, I'm not on the list.)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/