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

ACPI: osl: Remove the duplicated PREFIX for message printing

We have pr_fmt() in osl.c, so pr_err(PREFIX ...) is duplicated
and wrong, fix it by removing the PREFIX.

Also remove the using of PREFIX in WARN() and just add the plain
"ACPI: " in message to keep it unchanged.

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
2e670ded 4f59927d

+2 -2
+2 -2
drivers/acpi/osl.c
··· 212 212 return efi.acpi20; 213 213 if (efi.acpi != EFI_INVALID_TABLE_ADDR) 214 214 return efi.acpi; 215 - pr_err(PREFIX "System description tables not found\n"); 215 + pr_err("System description tables not found\n"); 216 216 } else if (IS_ENABLED(CONFIG_ACPI_LEGACY_TABLES_LOOKUP)) { 217 217 acpi_find_root_pointer(&pa); 218 218 } ··· 430 430 map = acpi_map_lookup_virt(virt, size); 431 431 if (!map) { 432 432 mutex_unlock(&acpi_ioremap_lock); 433 - WARN(true, PREFIX "%s: bad address %p\n", __func__, virt); 433 + WARN(true, "ACPI: %s: bad address %p\n", __func__, virt); 434 434 return; 435 435 } 436 436 acpi_os_drop_map_ref(map);