Private
Public Access
2
0

mraa.c: add LOG_NOTICE to checkout what i2c bus is added from pci

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2016-11-02 17:22:38 +00:00
parent e387946208
commit d602196bd6

View File

@@ -957,6 +957,7 @@ mraa_find_i2c_bus_pci(const char* pci_device, const char *pci_id, const char* ad
if (token != NULL) {
int ret = -1;
if (mraa_atoi(token, &ret) == MRAA_SUCCESS) {
syslog(LOG_NOTICE, "Adding i2c bus found on i2c-%d on adapter %s", ret, adapter_name);
return ret;
}
return -1;