tests: drop the external prefix in gu_err()
authorBartosz Golaszewski <bartekgola@gmail.com>
Wed, 1 Mar 2017 10:15:38 +0000 (11:15 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Wed, 1 Mar 2017 10:15:38 +0000 (11:15 +0100)
This function is static so drop the prefix.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
tests/unit/gpiod-unit.c

index fbf46562001a9138328cde07770c70a7e906b446..a6677252e08fe2f0531f0e2eba012650c990edf2 100644 (file)
@@ -61,7 +61,7 @@ static void GU_PRINTF(1, 2) msg(const char *fmt, ...)
        va_end(va);
 }
 
-static void GU_PRINTF(1, 2) gu_err(const char *fmt, ...)
+static void GU_PRINTF(1, 2) err(const char *fmt, ...)
 {
        va_list va;
 
@@ -387,7 +387,7 @@ int main(int argc GU_UNUSED, char **argv GU_UNUSED)
        if (!globals.tests_failed)
                msg("all tests passed");
        else
-               gu_err("%u out of %u tests failed",
+               err("%u out of %u tests failed",
                       globals.tests_failed, globals.num_tests);
 
        return globals.tests_failed ? EXIT_FAILURE : EXIT_SUCCESS;