From owner-freebsd-current@FreeBSD.ORG Tue May 12 10:29:36 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 71E36106564A for ; Tue, 12 May 2009 10:29:36 +0000 (UTC) (envelope-from ccuiyyan@gmail.com) Received: from mail-qy0-f105.google.com (mail-qy0-f105.google.com [209.85.221.105]) by mx1.freebsd.org (Postfix) with ESMTP id 2BD2F8FC08 for ; Tue, 12 May 2009 10:29:35 +0000 (UTC) (envelope-from ccuiyyan@gmail.com) Received: by qyk3 with SMTP id 3so5309419qyk.3 for ; Tue, 12 May 2009 03:29:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=vF2qltb9gIEe9M21c767A3GjPQ0x8P9P5vpn89QN8Tw=; b=CXsyM3KYhBtj/tBtyPYe3OTqSnA8SvLhx39CIOW4XgNGsOmSdpL1Fib0yRW+VCNGq1 ouhQQb7qtRjDg6bY5YYfVPU+O/ngwy4aNpbGctmUg2ucdvTMTifjQVbbA+rc1VQK9YlT wklgW0KTlLrhcXrIush66eGdtGCxOUmzsVrv8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=bS6fuXYi0tcvVD31srTfmfrkDKPJpvPQ/SQk3I8pqRgyqJ5CG7wrYXOL2VtE53OuXj pKi4sDtnbnI7SyLE6UX/T23ygFX+CC5Hd2+kyXsv0tQ/5YEODAswEdGclTd20DHbeqAZ JlWVHmDZLEwi0kGaGTDs7keoCiE4Y+xFIwkBo= MIME-Version: 1.0 Received: by 10.229.100.16 with SMTP id w16mr992724qcn.47.1242124175512; Tue, 12 May 2009 03:29:35 -0700 (PDT) Date: Tue, 12 May 2009 18:29:35 +0800 Message-ID: <4451ccf20905120329x68e86081p90d0098ad5ea5d5b@mail.gmail.com> From: =?GB2312?B?tN7R0mNjdWl5eWFuQHNpbmEuY29t?= To: freebsd-current@freebsd.org X-Mailman-Approved-At: Tue, 12 May 2009 11:34:31 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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 10:29:36 -0000 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