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; }