Re: Writing to a file in the kernel

2001-03-30 Thread Coleman Kane
Yeah. And you can prefix the messages with DEBUG: or some shit and use grep to parse them out. Drew Eckhardt had the audacity to say: > > In message <002d01c0b924$a07d2090$8d7d1f26@dhgfhcpps5nhe1>, [EMAIL PROTECTED] w > rites: > >The problem is that printf's scroll off the screen. How can I writ

Re: Writing to a file in the kernel

2001-03-30 Thread Drew Eckhardt
In message <002d01c0b924$a07d2090$8d7d1f26@dhgfhcpps5nhe1>, [EMAIL PROTECTED] w rites: >The problem is that printf's scroll off the screen. How can I write to a >file? syslogd(8)/syslog.conf(5). Also note that by default, on must unices the stock /etc/syslog.conf sends kernel messages to /var/l

Re: Writing to a file in the kernel

2001-03-30 Thread Robert Watson
On Fri, 30 Mar 2001, Gurpratap Virdi wrote: > I am trying to debug some modifications I made to the kernel. I would > like to write some debug messages to a log file however fopen(), > fprint() don't work. It gives me a linking error when I try to use them. > How can I do this? Thanks in advanc

Re: Writing to a file in the kernel

2001-03-30 Thread Daniel O'Connor
On 30-Mar-01 Gurpratap Virdi wrote: > The problem is that printf's scroll off the screen. How can I write to a > file? If you are running syslog it will write kernel messages wherever you tell it.. ie... kern.* /var/log/mykernelmessages.txt --- Daniel O'Connor software and network

Re: Writing to a file in the kernel

2001-03-30 Thread Gurpratap Virdi
The problem is that printf's scroll off the screen. How can I write to a file? - Original Message - From: "Daniel O'Connor" <[EMAIL PROTECTED]> To: "Gurpratap Virdi" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, March 30, 20

RE: Writing to a file in the kernel

2001-03-30 Thread Daniel O'Connor
On 30-Mar-01 Gurpratap Virdi wrote: > I am trying to debug some modifications I made to the kernel. I would like > to write some debug messages to a log file however fopen(), fprint() don't > work. It gives me a linking error when I try to use them. How can I do this? > Thanks in advance! Yo

Writing to a file in the kernel

2001-03-30 Thread Gurpratap Virdi
Hi, I am trying to debug some modifications I made to the kernel. I would like to write some debug messages to a log file however fopen(), fprint() don't work. It gives me a linking error when I try to use them. How can I do this? Thanks in advance! Virdi To Unsubscribe: send mail to [EMAIL PR