From 0da3d35a8f7db0d9ebed28404e85756f285b683f Mon Sep 17 00:00:00 2001 From: wda2945 Date: Tue, 29 Mar 2016 22:11:47 -1000 Subject: [PATCH] i2c.c: Fix typo in syslog message Signed-off-by: Martin G Lane-Smith Signed-off-by: Brendan Le Foll --- src/i2c/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i2c/i2c.c b/src/i2c/i2c.c index 00f05c8c5..9dab08800 100644 --- a/src/i2c/i2c.c +++ b/src/i2c/i2c.c @@ -79,7 +79,7 @@ mraa_i2c_init_internal(mraa_adv_func_t* advance_func, unsigned int bus) mraa_i2c_context dev = (mraa_i2c_context) calloc(1, sizeof(struct _i2c)); if (dev == NULL) { - syslog(LOG_CRIT, "i2c%s_init: Failed to allocate memory for context", bus); + syslog(LOG_CRIT, "i2c%i_init: Failed to allocate memory for context", bus); return NULL; }