gpio.c: add pin number to export fail message
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -132,7 +132,7 @@ mraa_gpio_init_raw(int pin)
|
||||
}
|
||||
length = snprintf(bu, sizeof(bu), "%d", dev->pin);
|
||||
if (write(export, bu, length*sizeof(char)) == -1) {
|
||||
syslog(LOG_ERR, "gpio: Failed to write to export");
|
||||
syslog(LOG_ERR, "gpio: Failed to write %d to export", dev->pin);
|
||||
close(export);
|
||||
free(dev);
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user