Private
Public Access
2
0

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:
Brendan Le Foll
2015-01-28 13:00:20 +00:00
parent 4d81fec6c9
commit 019b0a5e7e

View File

@@ -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;