Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 May 2009 14:47:29 +0300
From:      Krassimir Slavchev <krassi@bulinfo.net>
To:        =?UTF-8?B?IuW0lOWyqWNjdWl5eWFuQHNpbmEuY29tIg==?= <ccuiyyan@gmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Is there printk() in FreeBSD?
Message-ID:  <4A0961D1.1010503@bulinfo.net>
In-Reply-To: <4451ccf20905120329x68e86081p90d0098ad5ea5d5b@mail.gmail.com>
References:  <4451ccf20905120329x68e86081p90d0098ad5ea5d5b@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You can use printf or device_printf.
See man 9 device_printf

崔岩ccuiyyan@sina.com wrote:
> Dear all;
> 
>        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. And
> 
>        where can we find the output? in dmesg or somewhere else?
> 
>                                                            Best Wishes!
> 
>                                                                  Yan
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFKCWHRxJBWvpalMpkRAu41AJ4x9mI2AHvgAyn16fY8OB7LEnuMBACgo+XJ
S/FaTNIouZtd/LsTa2t6lAw=
=D4TH
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A0961D1.1010503>