From 35cdda6f38bcf28958170fa2af267d81aeca0064 Mon Sep 17 00:00:00 2001 From: David Betz Date: Tue, 27 Jan 2015 20:15:30 -0500 Subject: [PATCH] Fix a typo. --- gpio_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpio_sysfs.c b/gpio_sysfs.c index 1b0ac4c..2e618b8 100644 --- a/gpio_sysfs.c +++ b/gpio_sysfs.c @@ -146,7 +146,7 @@ int gpio_write(int pin, int value) snprintf(path, VALUE_MAX, "/sys/class/gpio/gpio%d/value", pin); fd = open(path, O_WRONLY); if (-1 == fd) { - fprintf(stderr, "Failed to open gpio% for writing!\n"); + fprintf(stderr, "Failed to open gpio%d for writing!\n"); return(-1); }