Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andy Shevchenko and committed by
Linus Torvalds
b513e522 3ff38237

+5 -6
+5 -6
drivers/rtc/rtc-rs5c372.c
··· 142 142 } 143 143 144 144 dev_dbg(&client->dev, 145 - "%02x %02x %02x (%02x) %02x %02x %02x (%02x), " 146 - "%02x %02x %02x, %02x %02x %02x; %02x %02x\n", 147 - rs5c->regs[0], rs5c->regs[1], rs5c->regs[2], rs5c->regs[3], 148 - rs5c->regs[4], rs5c->regs[5], rs5c->regs[6], rs5c->regs[7], 149 - rs5c->regs[8], rs5c->regs[9], rs5c->regs[10], rs5c->regs[11], 150 - rs5c->regs[12], rs5c->regs[13], rs5c->regs[14], rs5c->regs[15]); 145 + "%3ph (%02x) %3ph (%02x), %3ph, %3ph; %02x %02x\n", 146 + rs5c->regs + 0, rs5c->regs[3], 147 + rs5c->regs + 4, rs5c->regs[7], 148 + rs5c->regs + 8, rs5c->regs + 11, 149 + rs5c->regs[14], rs5c->regs[15]); 151 150 152 151 return 0; 153 152 }