diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-04-21 23:02:19 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-04-23 02:39:31 -0400 |
commit | ebd004e4edd5628617c0faed11162b8a095ad852 (patch) | |
tree | eec4ba5a86ce5e14b94be8653e47ddd2703a1cff /drivers | |
parent | 28d170abad3d6dfbe7309c0097d7de8a51c6b779 (diff) |
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')
-rw-r--r-- | drivers/macintosh/smu.c | 6 | ||||
-rw-r--r-- | drivers/macintosh/via-pmu.c | 5 |
2 files changed, 4 insertions, 7 deletions
diff --git a/drivers/macintosh/smu.c b/drivers/macintosh/smu.c index 9c6b96414862..b3b2d36c009e 100644 --- a/drivers/macintosh/smu.c +++ b/drivers/macintosh/smu.c | |||
@@ -120,11 +120,7 @@ static void smu_start_cmd(void) | |||
120 | 120 | ||
121 | DPRINTK("SMU: starting cmd %x, %d bytes data\n", cmd->cmd, | 121 | DPRINTK("SMU: starting cmd %x, %d bytes data\n", cmd->cmd, |
122 | cmd->data_len); | 122 | cmd->data_len); |
123 | DPRINTK("SMU: data buffer: %02x %02x %02x %02x %02x %02x %02x %02x\n", | 123 | DPRINTK("SMU: data buffer: %8ph\n", cmd->data_buf); |
124 | ((u8 *)cmd->data_buf)[0], ((u8 *)cmd->data_buf)[1], | ||
125 | ((u8 *)cmd->data_buf)[2], ((u8 *)cmd->data_buf)[3], | ||
126 | ((u8 *)cmd->data_buf)[4], ((u8 *)cmd->data_buf)[5], | ||
127 | ((u8 *)cmd->data_buf)[6], ((u8 *)cmd->data_buf)[7]); | ||
128 | 124 | ||
129 | /* Fill the SMU command buffer */ | 125 | /* Fill the SMU command buffer */ |
130 | smu->cmd_buf->cmd = cmd->cmd; | 126 | smu->cmd_buf->cmd = cmd->cmd; |
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) | |||
750 | voltage = (req->reply[8] << 8) | req->reply[9]; | 750 | voltage = (req->reply[8] << 8) | req->reply[9]; |
751 | break; | 751 | break; |
752 | default: | 752 | default: |
753 | printk(KERN_WARNING "pmu.c : unrecognized battery info, len: %d, %02x %02x %02x %02x\n", | 753 | pr_warn("pmu.c: unrecognized battery info, " |
754 | req->reply_len, req->reply[0], req->reply[1], req->reply[2], req->reply[3]); | 754 | "len: %d, %4ph\n", req->reply_len, |
755 | req->reply); | ||
755 | break; | 756 | break; |
756 | } | 757 | } |
757 | } | 758 | } |