Re: Is there printk() in FreeBSD?

From: Rodrigo OSORIO (ros) <"Rodrigo>
Date: Tue, 12 May 2009 13:49:46 +0200
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
Received on Tue May 12 2009 - 10:07:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:47 UTC