power: pmic: act8846: add missing newline to debug statements
authorJohn Keeping <john@metanate.com>
Sun, 7 Aug 2016 11:55:40 +0000 (12:55 +0100)
committerSimon Glass <sjg@chromium.org>
Fri, 12 Aug 2016 15:23:20 +0000 (09:23 -0600)
Signed-off-by: John Keeping <john@metanate.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/power/pmic/act8846.c

index ff096b3a9ccb5475e233d5259bf240aec3b2f7be..e8164bfd08afab318252a10a6da0f8582ed8815d 100644 (file)
@@ -29,7 +29,7 @@ static int act8846_write(struct udevice *dev, uint reg, const uint8_t *buff,
                          int len)
 {
        if (dm_i2c_write(dev, reg, buff, len)) {
-               debug("write error to device: %p register: %#x!", dev, reg);
+               debug("write error to device: %p register: %#x!\n", dev, reg);
                return -EIO;
        }
 
@@ -39,7 +39,7 @@ static int act8846_write(struct udevice *dev, uint reg, const uint8_t *buff,
 static int act8846_read(struct udevice *dev, uint reg, uint8_t *buff, int len)
 {
        if (dm_i2c_read(dev, reg, buff, len)) {
-               debug("read error from device: %p register: %#x!", dev, reg);
+               debug("read error from device: %p register: %#x!\n", dev, reg);
                return -EIO;
        }