Is there printk() in FreeBSD?

Rodrigo OSORIO (ros) rodrigo at bebik.net
Tue May 12 12:07:08 UTC 2009


On 12/05/09 18:29 +0800, ????ccuiyyan at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"

Hi

Please check the printf(9) to how to print messages in kernel code  :
http://www.freebsd.org/cgi/man.cgi?query=printf&apropos=0&sektion=9&manpath=FreeBSD+7.2-RELEASE&format=html

Regards
- Rodrigo


More information about the freebsd-current mailing list