Skip to contentSkip to conversation

Where is this printk?

DISCUSSION Marc-Christian Petersen 4 participants 5 messages Dec 16, 2002

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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
#2 lore raw
In reply to Marc-Christian Petersen

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
#3 lore raw

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_banner is in linux/init/version.c.

perfect! Thnx :)

ciao, Marc

#4 lore raw
In reply to Marc-Christian Petersen
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