diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2015-11-24 08:51:23 -0500 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2016-01-11 14:19:58 -0500 |
commit | ff67abd236ca7b65ea632f476f0f0cfc83aea711 (patch) | |
tree | 743a242cd807c95e21f7b1878df156a73bbba08e /drivers/rtc/rtc-ds1307.c | |
parent | 2ad2c17480b6208a35a4ffb937effe0ba1ed39de (diff) |
rtc: use %ph for short hex dumps
This makes the generated code slightly smaller.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-ds1307.c')
-rw-r--r-- | drivers/rtc/rtc-ds1307.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index aa705bb4748c..cf685f67b391 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/rtc/rtc-ds1307.c | |||
@@ -460,13 +460,8 @@ static int ds1337_read_alarm(struct device *dev, struct rtc_wkalrm *t) | |||
460 | return -EIO; | 460 | return -EIO; |
461 | } | 461 | } |
462 | 462 | ||
463 | dev_dbg(dev, "%s: %02x %02x %02x %02x, %02x %02x %02x, %02x %02x\n", | 463 | dev_dbg(dev, "%s: %4ph, %3ph, %2ph\n", "alarm read", |
464 | "alarm read", | 464 | &ds1307->regs[0], &ds1307->regs[4], &ds1307->regs[7]); |
465 | ds1307->regs[0], ds1307->regs[1], | ||
466 | ds1307->regs[2], ds1307->regs[3], | ||
467 | ds1307->regs[4], ds1307->regs[5], | ||
468 | ds1307->regs[6], ds1307->regs[7], | ||
469 | ds1307->regs[8]); | ||
470 | 465 | ||
471 | /* | 466 | /* |
472 | * report alarm time (ALARM1); assume 24 hour and day-of-month modes, | 467 | * report alarm time (ALARM1); assume 24 hour and day-of-month modes, |
@@ -522,12 +517,8 @@ static int ds1337_set_alarm(struct device *dev, struct rtc_wkalrm *t) | |||
522 | control = ds1307->regs[7]; | 517 | control = ds1307->regs[7]; |
523 | status = ds1307->regs[8]; | 518 | status = ds1307->regs[8]; |
524 | 519 | ||
525 | dev_dbg(dev, "%s: %02x %02x %02x %02x, %02x %02x %02x, %02x %02x\n", | 520 | dev_dbg(dev, "%s: %4ph, %3ph, %02x %02x\n", "alarm set (old status)", |
526 | "alarm set (old status)", | 521 | &ds1307->regs[0], &ds1307->regs[4], control, status); |
527 | ds1307->regs[0], ds1307->regs[1], | ||
528 | ds1307->regs[2], ds1307->regs[3], | ||
529 | ds1307->regs[4], ds1307->regs[5], | ||
530 | ds1307->regs[6], control, status); | ||
531 | 522 | ||
532 | /* set ALARM1, using 24 hour and day-of-month modes */ | 523 | /* set ALARM1, using 24 hour and day-of-month modes */ |
533 | buf[0] = bin2bcd(t->time.tm_sec); | 524 | buf[0] = bin2bcd(t->time.tm_sec); |