Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Mar 2001 23:48:54 +0930 (CST)
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        Gurpratap Virdi <gvirdi@gvirdi.com>
Cc:        hackers@FreeBSD.ORG
Subject:   RE: Writing to a file in the kernel
Message-ID:  <XFMail.010330234854.doconnor@gsoft.com.au>
In-Reply-To: <001501c0b923$51754e10$8d7d1f26@dhgfhcpps5nhe1>

next in thread | previous in thread | raw e-mail | index | archive | help

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 majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010330234854.doconnor>