projects
/
contrib
/
mraa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8269340
)
i2c.c: add debug syslog message for i2c bus path
author
Brendan Le Foll
<brendan.le.foll@intel.com>
Fri, 14 Aug 2015 10:18:24 +0000
(11:18 +0100)
committer
Brendan Le Foll
<brendan.le.foll@intel.com>
Fri, 14 Aug 2015 10:18:24 +0000
(11:18 +0100)
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/i2c/i2c.c
patch
|
blob
|
history
diff --git
a/src/i2c/i2c.c
b/src/i2c/i2c.c
index
c754c42
..
c4e4146
100644
(file)
--- a/
src/i2c/i2c.c
+++ b/
src/i2c/i2c.c
@@
-123,6
+123,7
@@
mraa_i2c_init_raw(unsigned int bus)
if ((dev->fh = open(filepath, O_RDWR)) < 1) {
syslog(LOG_ERR, "i2c: Failed to open requested i2c port %s", filepath);
}
+ syslog(LOG_DEBUG, "i2c: Opened i2c bus %s", filepath);
if (ioctl(dev->fh, I2C_FUNCS, &dev->funcs) < 0) {
syslog(LOG_CRIT, "i2c: Failed to get I2C_FUNC map from device");