Where is this printk?
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.
ciao, Marc
Quoted 6 lines · Marc-Christian Petersen
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
init/main.c start_kernel();
Dave
Signature · 2 lines
| Dave Jones. http://www.codemonkey.org.uk | SuSE Labs
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.
Signature · 1 line
~Randy
On Monday 16 December 2002 19:49, Randy.Dunlap wrote:
Hi Randy,
Quoted 3 lines
Nope, it's in
linux/init/main.c, line 357 in 2.4.20:printk(linux_banner);and
linux_banneris inlinux/init/version.c.
perfect! Thnx :)
ciao, Marc
Quoted 6 lines · Marc-Christian Petersen
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
init/version.c, see definition of linux_banner. Defines used by version.c is made by scripts/mkcompile_h
Sam