From owner-freebsd-current@FreeBSD.ORG Tue May 12 12:07:07 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2E5110656C1 for ; Tue, 12 May 2009 12:07:07 +0000 (UTC) (envelope-from rodrigo@bebik.net) Received: from smtpfb2-g21.free.fr (smtpfb2-g21.free.fr [212.27.42.10]) by mx1.freebsd.org (Postfix) with ESMTP id 3052A8FC22 for ; Tue, 12 May 2009 12:07:05 +0000 (UTC) (envelope-from rodrigo@bebik.net) Received: from smtp6-g21.free.fr (smtp6-g21.free.fr [212.27.42.6]) by smtpfb2-g21.free.fr (Postfix) with ESMTP id 81C3BCA9866 for ; Tue, 12 May 2009 13:49:55 +0200 (CEST) Received: from smtp6-g21.free.fr (localhost [127.0.0.1]) by smtp6-g21.free.fr (Postfix) with ESMTP id 0D879E080E0; Tue, 12 May 2009 13:49:49 +0200 (CEST) Received: from hodja.bebik.net (hodja.bebik.net [82.235.223.127]) by smtp6-g21.free.fr (Postfix) with ESMTP id 2C1E3E0816B; Tue, 12 May 2009 13:49:47 +0200 (CEST) Received: by hodja.bebik.net (Postfix, from userid 1001) id D61D62847B; Tue, 12 May 2009 13:49:46 +0200 (CEST) Date: Tue, 12 May 2009 13:49:46 +0200 From: "Rodrigo OSORIO (ros)" To: "????ccuiyyan@sina.com" Message-ID: <20090512114946.GA79236@hodja.bebik.net> References: <4451ccf20905120329x68e86081p90d0098ad5ea5d5b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4451ccf20905120329x68e86081p90d0098ad5ea5d5b@mail.gmail.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-current@freebsd.org Subject: Re: Is there printk() in FreeBSD? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 May 2009 12:07:08 -0000 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