|
3 | 3 | * scan.c - support for transforming the ACPI namespace into individual objects
|
4 | 4 | */
|
5 | 5 |
|
| 6 | +#define pr_fmt(fmt) "ACPI: " fmt |
| 7 | + |
6 | 8 | #include <linux/module.h>
|
7 | 9 | #include <linux/init.h>
|
8 | 10 | #include <linux/slab.h>
|
@@ -729,7 +731,7 @@ int acpi_device_add(struct acpi_device *device,
|
729 | 731 |
|
730 | 732 | result = acpi_device_setup_files(device);
|
731 | 733 | if (result)
|
732 |
| - printk(KERN_ERR PREFIX "Error creating sysfs interface for device %s\n", |
| 734 | + pr_err("Error creating sysfs interface for device %s\n", |
733 | 735 | dev_name(&device->dev));
|
734 | 736 |
|
735 | 737 | return 0;
|
@@ -1320,8 +1322,7 @@ static void acpi_set_pnp_ids(acpi_handle handle, struct acpi_device_pnp *pnp,
|
1320 | 1322 |
|
1321 | 1323 | acpi_get_object_info(handle, &info);
|
1322 | 1324 | if (!info) {
|
1323 |
| - pr_err(PREFIX "%s: Error reading device info\n", |
1324 |
| - __func__); |
| 1325 | + pr_err("%s: Error reading device info\n", __func__); |
1325 | 1326 | return;
|
1326 | 1327 | }
|
1327 | 1328 |
|
@@ -2278,7 +2279,7 @@ static void __init acpi_get_spcr_uart_addr(void)
|
2278 | 2279 | status = acpi_get_table(ACPI_SIG_SPCR, 0,
|
2279 | 2280 | (struct acpi_table_header **)&spcr_ptr);
|
2280 | 2281 | if (ACPI_FAILURE(status)) {
|
2281 |
| - pr_warn(PREFIX "STAO table present, but SPCR is missing\n"); |
| 2282 | + pr_warn("STAO table present, but SPCR is missing\n"); |
2282 | 2283 | return;
|
2283 | 2284 | }
|
2284 | 2285 |
|
@@ -2319,7 +2320,7 @@ int __init acpi_scan_init(void)
|
2319 | 2320 | (struct acpi_table_header **)&stao_ptr);
|
2320 | 2321 | if (ACPI_SUCCESS(status)) {
|
2321 | 2322 | if (stao_ptr->header.length > sizeof(struct acpi_table_stao))
|
2322 |
| - pr_info(PREFIX "STAO Name List not yet supported.\n"); |
| 2323 | + pr_info("STAO Name List not yet supported.\n"); |
2323 | 2324 |
|
2324 | 2325 | if (stao_ptr->ignore_uart)
|
2325 | 2326 | acpi_get_spcr_uart_addr();
|
|
0 commit comments