From owner-freebsd-arch@FreeBSD.ORG Thu Sep 20 21:22:13 2007 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CD9016A54B; Thu, 20 Sep 2007 21:22:13 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.74]) by mx1.freebsd.org (Postfix) with ESMTP id F351013C632; Thu, 20 Sep 2007 21:22:04 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (smtpin04-en2 [10.13.10.149]) by smtpoutm.mac.com (Xserve/smtpout011/MantshX 4.0) with ESMTP id l8KH9f1P015961; Thu, 20 Sep 2007 10:09:41 -0700 (PDT) Received: from [172.24.104.188] (natint3.juniper.net [66.129.224.36]) (authenticated bits=0) by mac.com (Xserve/smtpin04/MantshX 4.0) with ESMTP id l8KH9bPp020929 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 20 Sep 2007 10:09:38 -0700 (PDT) In-Reply-To: <20070919193150.GM79417@elvis.mu.org> References: <96A863DB-3C0B-4AD0-B0A1-3C0A89B42C75@mac.com> <20070919193150.GM79417@elvis.mu.org> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Marcel Moolenaar Date: Thu, 20 Sep 2007 10:08:25 -0700 To: Alfred Perlstein X-Mailer: Apple Mail (2.752.3) Cc: arch@freebsd.org Subject: Re: Replacing/enhancing kernel printf() X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Sep 2007 21:22:13 -0000 On Sep 19, 2007, at 12:31 PM, Alfred Perlstein wrote: ... > In effect one could define a tree, akin to sysctl that provided > all these layers. ... > Effectively a description file like this: > > all > all.kern > all.kern.dev > all.kern.dev.fxp > all.kern.dev.fxp.rx > all.kern.dev.fxp.tx > .. ... > Then inside the program one would simply write: > > alfred_printf(all_kern_dev_fxp, 1, "Fxp initialized"); > > then maybe in the rx routine: > > alfred_printf(all_kern_dev_fxp_rx, 2, "Fxp got packet"); For some reason this struck a note. While this was done for debug levels and may not directly apply to generic console output and redirection, it did put a seed in my head relating to device_printf(). Nothing concrete and it may not be anything, but still :-) -- Marcel Moolenaar xcllnt@mac.com