Commit ebd004e4 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Benjamin Herrenschmidt

powerpc/pmac/smu: Use %*ph to print small buffers

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 28d170ab
...@@ -120,11 +120,7 @@ static void smu_start_cmd(void) ...@@ -120,11 +120,7 @@ static void smu_start_cmd(void)
DPRINTK("SMU: starting cmd %x, %d bytes data\n", cmd->cmd, DPRINTK("SMU: starting cmd %x, %d bytes data\n", cmd->cmd,
cmd->data_len); cmd->data_len);
DPRINTK("SMU: data buffer: %02x %02x %02x %02x %02x %02x %02x %02x\n", DPRINTK("SMU: data buffer: %8ph\n", cmd->data_buf);
((u8 *)cmd->data_buf)[0], ((u8 *)cmd->data_buf)[1],
((u8 *)cmd->data_buf)[2], ((u8 *)cmd->data_buf)[3],
((u8 *)cmd->data_buf)[4], ((u8 *)cmd->data_buf)[5],
((u8 *)cmd->data_buf)[6], ((u8 *)cmd->data_buf)[7]);
/* Fill the SMU command buffer */ /* Fill the SMU command buffer */
smu->cmd_buf->cmd = cmd->cmd; smu->cmd_buf->cmd = cmd->cmd;
......
...@@ -750,8 +750,9 @@ done_battery_state_smart(struct adb_request* req) ...@@ -750,8 +750,9 @@ done_battery_state_smart(struct adb_request* req)
voltage = (req->reply[8] << 8) | req->reply[9]; voltage = (req->reply[8] << 8) | req->reply[9];
break; break;
default: default:
printk(KERN_WARNING "pmu.c : unrecognized battery info, len: %d, %02x %02x %02x %02x\n", pr_warn("pmu.c: unrecognized battery info, "
req->reply_len, req->reply[0], req->reply[1], req->reply[2], req->reply[3]); "len: %d, %4ph\n", req->reply_len,
req->reply);
break; break;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment