linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Tom Roberts <tjroberts@lucent.com>
To: Zhaobin Zhu <zzhu@emc.com>
Cc: "'linuxppc-embedded@lists.linuxppc.org'"
	<linuxppc-embedded@lists.linuxppc.org>
Subject: Re: printk() ?
Date: Wed, 27 Sep 2000 14:47:45 -0500	[thread overview]
Message-ID: <39D24EE1.10964CA@lucent.com> (raw)
In-Reply-To: 39D0F6DC.4DDB7509@emc.com


Zhaobin Zhu wrote:
> Where does printk() in linux kernel send message to ?

It normally prints to the syslogd facility, which by default makes it come
out in the file /var/log/messages and also for important enough messages
comes out on the console. Note that if you write your own console driver,
you probably need to write _two_ drivers: the actual console driver used
by printk (the read routine seems to be unused), and a serial I/O driver
which will be opened by the kernel for the init process. Console drivers
themselves do not appear in the filesystem, but are registered via
register_console(). The serial I/O device needs to appear in the filesystem
for the kernel to open it for init, so should be a standard char device.


> In which file I can find it ?

kernel/printk.c


Tom Roberts	tjroberts@lucent.com

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

      reply	other threads:[~2000-09-27 19:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-26 18:24 switching linux kernels Julia Elbert
2000-09-26 19:19 ` printk() ? Zhaobin Zhu
2000-09-27 19:47   ` Tom Roberts [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=39D24EE1.10964CA@lucent.com \
    --to=tjroberts@lucent.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=zzhu@emc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).