diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-04-22 05:02:19 +0200 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-04-23 08:39:31 +0200 |
commit | ebd004e4edd5628617c0faed11162b8a095ad852 (patch) | |
tree | eec4ba5a86ce5e14b94be8653e47ddd2703a1cff /drivers/macintosh/via-pmu.c | |
parent | ptrace/powerpc: Don't flush_ptrace_hw_breakpoint() on fork() (diff) | |
download | linux-ebd004e4edd5628617c0faed11162b8a095ad852.tar.xz linux-ebd004e4edd5628617c0faed11162b8a095ad852.zip |
powerpc/pmac/smu: Use %*ph to print small buffers
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/macintosh/via-pmu.c')
-rw-r--r-- | drivers/macintosh/via-pmu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index 22b8ce4191cc..c9c85426f4ff 100644 --- a/drivers/macintosh/via-pmu.c +++ b/drivers/macintosh/via-pmu.c @@ -750,8 +750,9 @@ done_battery_state_smart(struct adb_request* req) voltage = (req->reply[8] << 8) | req->reply[9]; break; default: - printk(KERN_WARNING "pmu.c : unrecognized battery info, len: %d, %02x %02x %02x %02x\n", - req->reply_len, req->reply[0], req->reply[1], req->reply[2], req->reply[3]); + pr_warn("pmu.c: unrecognized battery info, " + "len: %d, %4ph\n", req->reply_len, + req->reply); break; } } |