Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: pci_root: Unify the message printing

In acpi_pci_root_add(), pr_info() is added with PREFIX, but
in acpi_pci_root_remap_iospace() the pr_info() with no
PREFIX.

Introduce pr_fmt() to unify the message printing and remove
the PREFIX.

Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Hanjun Guo and committed by
Rafael J. Wysocki
ccde83e3 2e670ded

+3 -1
+3 -1
drivers/acpi/pci_root.c
··· 6 6 * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> 7 7 */ 8 8 9 + #define pr_fmt(fmt) "ACPI: " fmt 10 + 9 11 #include <linux/kernel.h> 10 12 #include <linux/module.h> 11 13 #include <linux/init.h> ··· 576 574 goto end; 577 575 } 578 576 579 - pr_info(PREFIX "%s [%s] (domain %04x %pR)\n", 577 + pr_info("%s [%s] (domain %04x %pR)\n", 580 578 acpi_device_name(device), acpi_device_bid(device), 581 579 root->segment, &root->secondary); 582 580