From owner-freebsd-hackers Fri Mar 30 6:19:14 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from midget.dons.net.au (daniel.lnk.telstra.net [139.130.137.70]) by hub.freebsd.org (Postfix) with ESMTP id AE1EB37B71E for ; Fri, 30 Mar 2001 06:19:06 -0800 (PST) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (guppy.dons.net.au [203.31.81.9]) by midget.dons.net.au (8.11.3/8.9.3) with ESMTP id f2UEIxi99166; Fri, 30 Mar 2001 23:48:59 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <001501c0b923$51754e10$8d7d1f26@dhgfhcpps5nhe1> Date: Fri, 30 Mar 2001 23:48:54 +0930 (CST) From: "Daniel O'Connor" To: Gurpratap Virdi Subject: RE: Writing to a file in the kernel Cc: hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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