> > printk("<%d>", irq);
> Hmm, isn't <0>, <1> etc used to encode the printk level in the string
> though?
yes. the above will still be printed, because there is no newline in the
printk. The first printk (which is very likely <0>), will be interpreted
as KERN_EMERG and will be snipped, the rest of the 'line' will be printed.
(until something printk's a \n, when the whole thing starts again.) But
you are right, it's more consistent and safer to use eg. "(%d)".
Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/