From a6fd94c6fe547ed01af48cb23fb249c0cd1cf26a Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Mon, 26 Oct 2015 11:02:37 -0200 Subject: [PATCH] ArduPlane: fix wrong printf format for 32 bits "micros() - before" doesn't return a long value. Use "%u". --- ArduPlane/Parameters.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/Parameters.cpp b/ArduPlane/Parameters.cpp index 5efd60ce08..5c293ee7e0 100644 --- a/ArduPlane/Parameters.cpp +++ b/ArduPlane/Parameters.cpp @@ -1277,6 +1277,6 @@ void Plane::load_parameters(void) // Load all auto-loaded EEPROM variables AP_Param::load_all(); AP_Param::convert_old_parameters(&conversion_table[0], ARRAY_SIZE(conversion_table)); - cliSerial->printf("load_all took %luus\n", micros() - before); + cliSerial->printf("load_all took %uus\n", micros() - before); } }