From: Brendan Le Foll Date: Fri, 11 Jul 2014 13:47:52 +0000 (+0100) Subject: i2c.c: add newlines at the end of all error msgs X-Git-Tag: v0.4.2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0b83606983fb6dc5eb4c42c940928ffaa5295a3;p=contrib%2Fmraa.git i2c.c: add newlines at the end of all error msgs Signed-off-by: Brendan Le Foll --- diff --git a/src/i2c/i2c.c b/src/i2c/i2c.c index e58eb70..4163440 100644 --- a/src/i2c/i2c.c +++ b/src/i2c/i2c.c @@ -47,7 +47,7 @@ mraa_i2c_init(int bus) fprintf(stderr, "Failed to set-up i2c multiplexer!\n"); return NULL; case -3: - fprintf(stderr, "Platform Not Initialised"); + fprintf(stderr, "Platform Not Initialised\n"); return NULL; default: return NULL; } @@ -65,7 +65,7 @@ mraa_i2c_init_raw(unsigned int bus) char filepath[32]; snprintf(filepath, 32, "/dev/i2c-%u", bus); if ((dev->fh = open(filepath, O_RDWR)) < 1) { - fprintf(stderr, "Failed to open requested i2c port %s", filepath); + fprintf(stderr, "Failed to open requested i2c port %s\n", filepath); } return dev; }