From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756297AbYIPRr1 (ORCPT ); Tue, 16 Sep 2008 13:47:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752912AbYIPRrT (ORCPT ); Tue, 16 Sep 2008 13:47:19 -0400 Received: from mail-gx0-f16.google.com ([209.85.217.16]:63043 "EHLO mail-gx0-f16.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752172AbYIPRrT (ORCPT ); Tue, 16 Sep 2008 13:47:19 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=IvEDKokAn3JWuRn5/I6ZtK+nqDuOFQbIBJ8xWXO9xMhCOnJFqlVAPyXGoSM/XUWm0S 6uMZ+KAePbvszHgo+9my7XTYD/LQMrdhJCyHxTcV3QXvQfKTADOD6necrM3cpEEaWz11 LW+CGsflLuYDUjpplaNIBWXob5dOk50ZHrmhY= Message-ID: <86802c440809161047r14f928fcud1a88b25a0969b17@mail.gmail.com> Date: Tue, 16 Sep 2008 10:47:17 -0700 From: "Yinghai Lu" To: "H. Peter Anvin" Subject: Re: [PATCH] introduce boot_printk() Cc: "Peter Zijlstra" , "Ingo Molnar" , "Thomas Gleixner" , "Andrew Morton" , linux-kernel@vger.kernel.org, jbaron In-Reply-To: <86802c440809161045q2f6d80f1yb6e79f32c6e0c303@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1221465916-30889-1-git-send-email-yhlu.kernel@gmail.com> <48CE983C.8040709@zytor.com> <86802c440809151018k2c7874dfjc8e9791bee9365f9@mail.gmail.com> <48CE9A5C.1030603@zytor.com> <86802c440809151034ycd6442me679792880b03320@mail.gmail.com> <1221575196.6943.24.camel@lappy.programming.kicks-ass.net> <48CFD97C.6080002@zytor.com> <86802c440809161045q2f6d80f1yb6e79f32c6e0c303@mail.gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 16, 2008 at 10:45 AM, Yinghai Lu wrote: > On Tue, Sep 16, 2008 at 9:06 AM, H. Peter Anvin wrote: >> Peter Zijlstra wrote: >>>> >>>> every subsystem will have >>>> x86_printk >>>> acpi_printk >>>> pci_printk >>> >>> doesn't sound like an easily extensible interface, better would be >>> extending printk with a KERN_subsys tag like proposed. >>> >> >> That would be my thinking too. > > it seem using pci_printk or acpi_printk.. could be more flexible. > > otherwise will need to keep update linux/kernel.h to add so call subsys tags... > > use only need to > have DEFINE_LOGLEVEL_SETUP(xxx) in c > and have DECLARE_LOGLEVEL(xxx) in .h > then just use xxx_printk > and in real subsys could have as many the xxx_printk that user want... YH