Skip to content

Commit bd10c13

Browse files
guohanjunrafaeljw
authored andcommitted
ACPI: sbshc: Unify the message printing
Using pr_fmt() and pr_*() macros to unify the message printing. Signed-off-by: Hanjun Guo <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 86ca3b0 commit bd10c13

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/acpi/sbshc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* Copyright (c) 2007 Alexey Starikovskiy
66
*/
77

8+
#define pr_fmt(fmt) "ACPI: " fmt
9+
810
#include <linux/acpi.h>
911
#include <linux/wait.h>
1012
#include <linux/slab.h>
@@ -13,8 +15,6 @@
1315
#include <linux/interrupt.h>
1416
#include "sbshc.h"
1517

16-
#define PREFIX "ACPI: "
17-
1818
#define ACPI_SMB_HC_CLASS "smbus_host_ctl"
1919
#define ACPI_SMB_HC_DEVICE_NAME "ACPI SMBus HC"
2020

@@ -109,7 +109,7 @@ static int acpi_smbus_transaction(struct acpi_smb_hc *hc, u8 protocol,
109109
u8 temp, sz = 0;
110110

111111
if (!hc) {
112-
printk(KERN_ERR PREFIX "host controller is not configured\n");
112+
pr_err("host controller is not configured\n");
113113
return ret;
114114
}
115115

@@ -254,7 +254,7 @@ static int acpi_smbus_hc_add(struct acpi_device *device)
254254

255255
status = acpi_evaluate_integer(device->handle, "_EC", NULL, &val);
256256
if (ACPI_FAILURE(status)) {
257-
printk(KERN_ERR PREFIX "error obtaining _EC.\n");
257+
pr_err("error obtaining _EC.\n");
258258
return -EIO;
259259
}
260260

0 commit comments

Comments
 (0)