Re: Where is this printk?

Randy.Dunlap (rddunlap@osdl.org)
Mon, 16 Dec 2002 10:49:58 -0800 (PST)


On Mon, 16 Dec 2002, Marc-Christian Petersen wrote:

| Hi all,
|
| does anyone know where this is printed out in kernel source?
|
| Linux version 2.4.20 (root@codeman) (gcc version 2.95.4 20011002 (Debian
| prerelease)) #1 Mon Dec 16 16:54:44 CET 2002
| BIOS-provided physical RAM map:
| BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
| BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
| ...
|
| I only want to know where the first line is printed out (that is a dmesg
| output). I want to put in a printk just before the first line.
|
| I thought somewhere in arch/$arch/kernel/setup.c but I cannot figure out
| where.

Nope, it's in linux/init/main.c, line 357 in 2.4.20:

printk(linux_banner);

and linux_banner is in linux/init/version.c.

-- 
~Randy

- 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/