From owner-freebsd-current@FreeBSD.ORG Tue May 12 12:06:18 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 C6CE8106566B for ; Tue, 12 May 2009 12:06:18 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id 7B5018FC0A for ; Tue, 12 May 2009 12:06:18 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id A31FEC387; Tue, 12 May 2009 14:47:31 +0300 (EEST) Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 79728-04; Tue, 12 May 2009 14:47:30 +0300 (EEST) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id D5E06BBC0; Tue, 12 May 2009 14:47:30 +0300 (EEST) Message-ID: <4A0961D1.1010503@bulinfo.net> Date: Tue, 12 May 2009 14:47:29 +0300 From: Krassimir Slavchev User-Agent: Thunderbird 2.0.0.19 (X11/20090225) MIME-Version: 1.0 To: =?UTF-8?B?IuW0lOWyqWNjdWl5eWFuQHNpbmEuY29tIg==?= References: <4451ccf20905120329x68e86081p90d0098ad5ea5d5b@mail.gmail.com> In-Reply-To: <4451ccf20905120329x68e86081p90d0098ad5ea5d5b@mail.gmail.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net 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:06:19 -0000 -----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-----