]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/baylibre-acme/gpio.c
baylibre-acme: Minor coding-style, cosmetics.
[libsigrok.git] / src / hardware / baylibre-acme / gpio.c
index f7348cdf8ef9160b9ffc5109ddb86412d4f25e1f..7af4ebf5d27423e40d3735890af93f93c7a1bfc5 100644 (file)
@@ -36,14 +36,14 @@ static int open_and_write(const gchar *path, const gchar *buf)
 
        fd = g_fopen(path, "w");
        if (!fd) {
-               sr_err("error opening %s: %s", path, strerror(errno));
+               sr_err("Error opening %s: %s", path, strerror(errno));
                return -1;
        }
 
        wr = g_fprintf(fd, "%s", buf);
        fclose(fd);
        if (wr < 0) {
-               sr_err("error writing to %s: %s", path, strerror(errno));
+               sr_err("Error writing to %s: %s", path, strerror(errno));
                return -1;
        }
 
@@ -117,7 +117,7 @@ SR_PRIV int sr_gpio_get_value(int gpio)
        g_string_printf(path, "/sys/class/gpio/gpio%d/value", gpio);
        fd = g_fopen(path->str, "r");
        if (!fd) {
-               sr_err("error opening %s: %s", path->str, strerror(errno));
+               sr_err("Error opening %s: %s", path->str, strerror(errno));
                g_string_free(path, TRUE);
                return -1;
        }
@@ -125,7 +125,7 @@ SR_PRIV int sr_gpio_get_value(int gpio)
        status = fscanf(fd, "%d", &ret);
        fclose(fd);
        if (status != 1) {
-               sr_err("error reading from %s: %s", path, strerror(errno));
+               sr_err("Error reading from %s: %s", path, strerror(errno));
                g_string_free(path, TRUE);
                return -1;
        }