public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Where is this printk?
@ 2002-12-16 18:43 Marc-Christian Petersen
  2002-12-16 18:49 ` Randy.Dunlap
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Marc-Christian Petersen @ 2002-12-16 18:43 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Where is this printk?
  2002-12-16 18:43 Where is this printk? Marc-Christian Petersen
@ 2002-12-16 18:49 ` Randy.Dunlap
  2002-12-16 18:57   ` Marc-Christian Petersen
  2002-12-16 18:53 ` Dave Jones
  2002-12-16 18:59 ` Sam Ravnborg
  2 siblings, 1 reply; 5+ messages in thread
From: Randy.Dunlap @ 2002-12-16 18:49 UTC (permalink / raw)
  To: Marc-Christian Petersen; +Cc: linux-kernel

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Where is this printk?
  2002-12-16 18:43 Where is this printk? Marc-Christian Petersen
  2002-12-16 18:49 ` Randy.Dunlap
@ 2002-12-16 18:53 ` Dave Jones
  2002-12-16 18:59 ` Sam Ravnborg
  2 siblings, 0 replies; 5+ messages in thread
From: Dave Jones @ 2002-12-16 18:53 UTC (permalink / raw)
  To: Marc-Christian Petersen; +Cc: linux-kernel

On Mon, Dec 16, 2002 at 07:43:24PM +0100, 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

init/main.c start_kernel();

		Dave

-- 
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Where is this printk?
  2002-12-16 18:49 ` Randy.Dunlap
@ 2002-12-16 18:57   ` Marc-Christian Petersen
  0 siblings, 0 replies; 5+ messages in thread
From: Marc-Christian Petersen @ 2002-12-16 18:57 UTC (permalink / raw)
  To: linux-kernel; +Cc: Randy.Dunlap

On Monday 16 December 2002 19:49, Randy.Dunlap wrote:

Hi Randy,

> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Where is this printk?
  2002-12-16 18:43 Where is this printk? Marc-Christian Petersen
  2002-12-16 18:49 ` Randy.Dunlap
  2002-12-16 18:53 ` Dave Jones
@ 2002-12-16 18:59 ` Sam Ravnborg
  2 siblings, 0 replies; 5+ messages in thread
From: Sam Ravnborg @ 2002-12-16 18:59 UTC (permalink / raw)
  To: Marc-Christian Petersen; +Cc: linux-kernel

On Mon, Dec 16, 2002 at 07:43:24PM +0100, 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

init/version.c, see definition of linux_banner.
Defines used by version.c is made by scripts/mkcompile_h

	Sam

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-12-16 18:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-16 18:43 Where is this printk? Marc-Christian Petersen
2002-12-16 18:49 ` Randy.Dunlap
2002-12-16 18:57   ` Marc-Christian Petersen
2002-12-16 18:53 ` Dave Jones
2002-12-16 18:59 ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox