Date: Mon, 17 Oct 2005 18:25:26 -0700 From: Bharma Ji <bharmaji@gmail.com> To: freebsd-drivers@freebsd.org Subject: Recommended ways to log driver operations Message-ID: <67beabb0510171825q1e124bf6v2adbe0c9f235a6ae@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi I recently wrote a driver for a chip. I am wondering if there are any standard recommended ways of logging the driver operations. I have used printf in the driver and I look at it using dmesg so far. Am wondering if i= t is possible to create a driver specific log file so that it is easy to debug. Also, if the driver emits copious output then the log buffer will overflow and some messages may be truncated. Writing to a specific log file may help in that case. However, I have no idea if this is worth investigating. Any suggestions appreciated
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?67beabb0510171825q1e124bf6v2adbe0c9f235a6ae>