From: Bartosz Golaszewski Date: Wed, 1 Mar 2017 10:15:38 +0000 (+0100) Subject: tests: drop the external prefix in gu_err() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1941cb16c7c95d5afa904e99ba6f934a02f372e4;p=qemu-gpiodev%2Flibgpiod.git tests: drop the external prefix in gu_err() This function is static so drop the prefix. Signed-off-by: Bartosz Golaszewski --- diff --git a/tests/unit/gpiod-unit.c b/tests/unit/gpiod-unit.c index fbf4656..a667725 100644 --- a/tests/unit/gpiod-unit.c +++ b/tests/unit/gpiod-unit.c @@ -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;