mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "John Que" <qwejohn@hotmail.com>
To: linux-kernel@vger.kernel.org
Subject: printk redirection to a different file
Date: Mon, 12 Apr 2004 13:39:49 +0300	[thread overview]
Message-ID: <BAY14-F48FudQ3yeYsb0003ff1e@hotmail.com> (raw)

Hello,

I had added printk calls in a linux kernel module
for debug purposes.
Now , I want that this calls will be loggoed not to
/var/log/messages (this is where
the printk messages  are on RH9) but to a different file.

I am thinking of one main alternative:

create a debug_printk() method (by  copying the printk.c to debug_printk.c
, doing needed changes , and call debug_printk() method instead of
printk() methods where I want messages to a different log file).

Problem is that I do not see where in printk.c it
says that the messages will go to /var/log/messages.

(I assume that this is done with a logging system daemon).


any idea what to do ?
regards,
John

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


             reply	other threads:[~2004-04-12 10:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-12 10:39 John Que [this message]
2004-04-12 10:47 ` Vladimir Saveliev
2004-04-12 10:59 ` Eugene Teo

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=BAY14-F48FudQ3yeYsb0003ff1e@hotmail.com \
    --to=qwejohn@hotmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®