Skip to content

Commit

Permalink
i2c.c: Fix typo in syslog message
Browse files Browse the repository at this point in the history
Signed-off-by: Martin G Lane-Smith <[email protected]>
Signed-off-by: Brendan Le Foll <[email protected]>
  • Loading branch information
wda2945 authored and arfoll committed Apr 15, 2016
1 parent 1ebe377 commit 0da3d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/i2c/i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0da3d35

Please sign in to comment.