From owner-freebsd-net Sun Jan 21 9:29: 9 2001 Delivered-To: freebsd-net@freebsd.org Received: from falcon.prod.itd.earthlink.net (falcon.prod.itd.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id AA5EF37B401 for ; Sun, 21 Jan 2001 09:28:51 -0800 (PST) Received: from godfather (ip192.schiller-park9.il.pub-ip.psi.net [38.31.126.192]) by falcon.prod.itd.earthlink.net (EL-8_9_3_3/8.9.3) with SMTP id JAA09342 for ; Sun, 21 Jan 2001 09:28:50 -0800 (PST) Message-ID: <004601c083cf$9e3d2490$050101c0@godfather> From: "Sean" To: "BSD" Subject: Logging to a file Date: Sun, 21 Jan 2001 11:28:48 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.3018.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I am making some modifications to the Ethernet code and I need to log some custom debug info to a file. So far I was using printf but there is too much info to dump on the display. I tried using fopen() fprintf() & fclose() however it gave me a linker error saying undefined reference to fopen etc. Any ideas? Thanks in advance! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message