Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 May 2009 13:49:46 +0200
From:      "Rodrigo OSORIO (ros)" <rodrigo@bebik.net>
To:        "????ccuiyyan@sina.com" <ccuiyyan@gmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Is there printk() in FreeBSD?
Message-ID:  <20090512114946.GA79236@hodja.bebik.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
On 12/05/09 18:29 +0800, ????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"

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



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