Private
Public Access
2
0

mraa-gpio.c: add %d to printf statement

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2015-07-08 10:14:56 +01:00
parent f9dd4c06de
commit 8734a42377

View File

@@ -116,7 +116,7 @@ gpio_get(int pin, int* level, mraa_boolean_t raw)
if (raw != 0) {
if (mraa_gpio_use_mmaped(gpio, 1) != MRAA_SUCCESS) {
fprintf(stdout,
"mmapped access to gpio not supported, falling back to normal mode\n", pin);
"mmapped access to gpio %d not supported, falling back to normal mode\n", pin);
}
}
*level = mraa_gpio_read(gpio);