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:
@@ -957,6 +957,7 @@ mraa_find_i2c_bus_pci(const char* pci_device, const char *pci_id, const char* ad
|
|||||||
if (token != NULL) {
|
if (token != NULL) {
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
if (mraa_atoi(token, &ret) == MRAA_SUCCESS) {
|
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 ret;
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user