Date: Tue, 12 May 2009 15:50:07 +0400 From: Eygene Ryabinkin <rea-fbsd@codelabs.ru> To: "????ccuiyyan@sina.com" <ccuiyyan@gmail.com> Cc: freebsd-current@freebsd.org Subject: Re: Is there printk() in FreeBSD? Message-ID: <UQ0DAlUM7V93b1t4lWxdXm80xU0@ygVMaGs7Fh84nQF7insb7jYTZmE> In-Reply-To: <uPyvXRYUMhTQiPijMfhOl9gAxL8@BDDafoqRaVX0wx5yYhK7e3tDxdk> References: <4451ccf20905120329x68e86081p90d0098ad5ea5d5b@mail.gmail.com> <uPyvXRYUMhTQiPijMfhOl9gAxL8@BDDafoqRaVX0wx5yYhK7e3tDxdk>
next in thread | previous in thread | raw e-mail | index | archive | help
Tue, May 12, 2009 at 03:48:38PM +0400, Eygene Ryabinkin wrote: > Tue, May 12, 2009 at 06:29:35PM +0800, ????ccuiyyan@sina.com wrote: > > > A simple question: sometimes i need to print out some kernel > > address in FreeBSD kernel. And i know printk() can be used in > > Linux to print the message to dmesg, Is there some similar in > > FreeBSD? > > > > It seems that printk() cannot work in the FreeBSD kernel. > > Use plain printf(). By the way, there is device_printf (man 9 device_printf) that is a bit prettier than the plain printf, so you can use it as well. -- Eygene _ ___ _.--. # \`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard / ' ` , __.--' # to read the on-line manual )/' _/ \ `-_, / # while single-stepping the kernel. `-'" `"\_ ,_.-;_.-\_ ', fsc/as # _.-'_./ {_.' ; / # -- FreeBSD Developers handbook {_.-``-' {_/ #
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?UQ0DAlUM7V93b1t4lWxdXm80xU0>