mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 14:11:20 +00:00
drivers/rtc: dump small buffers via %*ph
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>
This commit is contained in:
parent
d7d48f6216
commit
01a4ca16c8
3 changed files with 8 additions and 44 deletions
|
@ -635,9 +635,7 @@ static int ds1305_probe(struct spi_device *spi)
|
|||
goto fail0;
|
||||
}
|
||||
|
||||
dev_dbg(&spi->dev, "ctrl %s: %02x %02x %02x\n",
|
||||
"read", ds1305->ctrl[0],
|
||||
ds1305->ctrl[1], ds1305->ctrl[2]);
|
||||
dev_dbg(&spi->dev, "ctrl %s: %3ph\n", "read", ds1305->ctrl);
|
||||
|
||||
/* Sanity check register values ... partially compensating for the
|
||||
* fact that SPI has no device handshake. A pullup on MISO would
|
||||
|
@ -723,9 +721,7 @@ static int ds1305_probe(struct spi_device *spi)
|
|||
goto fail0;
|
||||
}
|
||||
|
||||
dev_dbg(&spi->dev, "ctrl %s: %02x %02x %02x\n",
|
||||
"write", ds1305->ctrl[0],
|
||||
ds1305->ctrl[1], ds1305->ctrl[2]);
|
||||
dev_dbg(&spi->dev, "ctrl %s: %3ph\n", "write", ds1305->ctrl);
|
||||
}
|
||||
|
||||
/* see if non-Linux software set up AM/PM mode */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue