Printk output on console

From: srinivas naga vutukuri
Date: Tue Dec 21 2004 - 04:26:54 EST

Hi Selva,

I understood the question as where all/what all printks (with
line nos and the file names)
you are looking for is it. I think, in a normal printf using the
macros __FILE__ and __LINE__ will give that...

printk(KERN_ERR "%s: Driver Initialisation failed", __FILE__);
Is this helpful...

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at