From 9ac63d71284b812813e6e65da9258ce891105b19 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Tue, 3 May 2016 22:21:03 -0300 Subject: [PATCH] AP_HAL: examples: fix coding style --- libraries/AP_HAL/examples/Printf/Printf.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libraries/AP_HAL/examples/Printf/Printf.cpp b/libraries/AP_HAL/examples/Printf/Printf.cpp index 2d43627540..527d4d086d 100644 --- a/libraries/AP_HAL/examples/Printf/Printf.cpp +++ b/libraries/AP_HAL/examples/Printf/Printf.cpp @@ -53,27 +53,27 @@ static void test_printf(void) for (i=0; i < ARRAY_SIZE(float_tests); i++) { int ret = hal.util->snprintf(buf, sizeof(buf), float_tests[i].fmt, float_tests[i].v); if (strcmp(buf, float_tests[i].result) != 0) { - hal.console->printf("Failed float_tests[%u] '%s' -> '%s' should be '%s'\n", - (unsigned)i, + hal.console->printf("Failed float_tests[%u] '%s' -> '%s' should be '%s'\n", + (unsigned)i, float_tests[i].fmt, buf, float_tests[i].result); failures++; } if (ret != strlen(float_tests[i].result)) { - hal.console->printf("Failed float_tests[%u] ret=%d/%d '%s' should be '%s'\n", - (unsigned)i, + hal.console->printf("Failed float_tests[%u] ret=%d/%d '%s' should be '%s'\n", + (unsigned)i, ret, (int)strlen(float_tests[i].result), float_tests[i].fmt, float_tests[i].result); - failures++; + failures++; } } hal.console->printf("%u failures\n", (unsigned)failures); } -void loop(void) -{ +void loop(void) +{ test_printf(); hal.scheduler->delay(1000); }