lkml.org 
[lkml]   [2004]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectprintk redirection to a different file
Date
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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.038 / U:0.404 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site