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, 2001 8:18 AM
Subject: RE: Writing to a file in the kernel



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!

You could just use printf and the messages will appear in the console..

You can also add a debugging ioctl to your device, or a sysctl to change the
debug level mid stream.

---
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to