Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753685Ab2KSP7j (ORCPT ); Mon, 19 Nov 2012 10:59:39 -0500 Received: from g1t0028.austin.hp.com ([15.216.28.35]:14025 "EHLO g1t0028.austin.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752886Ab2KSP7i (ORCPT ); Mon, 19 Nov 2012 10:59:38 -0500 Message-ID: <1353340280.10939.42.camel@misato.fc.hp.com> Subject: Re: [PATCH v5 RESEND 1/5] ACPI: Add acpi_pr_() interfaces From: Toshi Kani To: Joe Perches Cc: linux-acpi@vger.kernel.org, rjw@sisk.pl, lenb@kernel.org, linux-kernel@vger.kernel.org, bhelgaas@google.com, isimatu.yasuaki@jp.fujitsu.com, vijaymohan.pandarathil@hp.com, imammedo@redhat.com, prarit@redhat.com Date: Mon, 19 Nov 2012 08:51:20 -0700 In-Reply-To: <1353315374.3129.3.camel@joe-AO722> References: <1352214130-12055-1-git-send-email-toshi.kani@hp.com> <1352214130-12055-2-git-send-email-toshi.kani@hp.com> <1353315374.3129.3.camel@joe-AO722> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.4 (3.4.4-2.fc17) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1335 Lines: 37 On Mon, 2012-11-19 at 00:56 -0800, Joe Perches wrote: > On Tue, 2012-11-06 at 08:02 -0700, Toshi Kani wrote: > > This patch introduces acpi_pr_(), where is a kernel > > message level such as err/warn/info, to support improved logging > > messages for ACPI, esp. for hotplug operations. > [] > > diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h > [] > > @@ -56,6 +56,37 @@ acpi_evaluate_hotplug_ost(acpi_handle handle, u32 source_event, > > > > acpi_status > > acpi_get_physical_device_location(acpi_handle handle, struct acpi_pld_info **pld); > > + > > +void acpi_printk(const char *level, acpi_handle handle, const char *fmt, ...); > > This should be declared with __printf(3, 4) Hi Joe, Yes, I will add __printf(3,4). Thanks for pointing this out. > is acpi_bus.h really the right file for these prototypes? This interface is limited for ACPI, so it should be declared in a header file under include/acpi. Among the files in this directory, acpi_bus.h seems to be a good fit as it declares the interfaces provided by ACPI core. Thanks, -Toshi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/