diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2014-10-13 18:53:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-13 20:18:19 -0400 |
commit | b513e522cb8bda32560fb6b7f0475aa56e486ab9 (patch) | |
tree | b4203604a4e105b93445bbfd4154f32cdd91400d /drivers/rtc | |
parent | 3ff38237f183ecd8a190318e0046138b92ee5e35 (diff) |
drivers/rtc/rtc-rs5c372.c: use %*ph to dump small buffers
Instead of pushing each byte let's reduce stack usage by using %*ph specifier.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-rs5c372.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/rtc/rtc-rs5c372.c b/drivers/rtc/rtc-rs5c372.c index ccf54f06396b..28871cd7e3b5 100644 --- a/drivers/rtc/rtc-rs5c372.c +++ b/drivers/rtc/rtc-rs5c372.c | |||
@@ -142,12 +142,11 @@ static int rs5c_get_regs(struct rs5c372 *rs5c) | |||
142 | } | 142 | } |
143 | 143 | ||
144 | dev_dbg(&client->dev, | 144 | dev_dbg(&client->dev, |
145 | "%02x %02x %02x (%02x) %02x %02x %02x (%02x), " | 145 | "%3ph (%02x) %3ph (%02x), %3ph, %3ph; %02x %02x\n", |
146 | "%02x %02x %02x, %02x %02x %02x; %02x %02x\n", | 146 | rs5c->regs + 0, rs5c->regs[3], |
147 | rs5c->regs[0], rs5c->regs[1], rs5c->regs[2], rs5c->regs[3], | 147 | rs5c->regs + 4, rs5c->regs[7], |
148 | rs5c->regs[4], rs5c->regs[5], rs5c->regs[6], rs5c->regs[7], | 148 | rs5c->regs + 8, rs5c->regs + 11, |
149 | rs5c->regs[8], rs5c->regs[9], rs5c->regs[10], rs5c->regs[11], | 149 | rs5c->regs[14], rs5c->regs[15]); |
150 | rs5c->regs[12], rs5c->regs[13], rs5c->regs[14], rs5c->regs[15]); | ||
151 | 150 | ||
152 | return 0; | 151 | return 0; |
153 | } | 152 | } |