From 57f7af504dc103b301e0229cea3286bfabc9d4cc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 26 Dec 2018 09:38:18 +1100 Subject: [PATCH] DataFlash: fixed build warning on cygwin --- libraries/DataFlash/DataFlash.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/DataFlash/DataFlash.cpp b/libraries/DataFlash/DataFlash.cpp index 69c10d58d3..ab3420af68 100644 --- a/libraries/DataFlash/DataFlash.cpp +++ b/libraries/DataFlash/DataFlash.cpp @@ -297,15 +297,15 @@ bool DataFlash_Class::validate_structure(const struct LogStructure *logstructure // ensure we have units for each field: if (strlen(logstructure->units) != fieldcount) { - Debug("fieldcount=%u does not match unitcount=%lu", - fieldcount, strlen(logstructure->units)); + Debug("fieldcount=%u does not match unitcount=%u", + (unsigned)fieldcount, (unsigned)strlen(logstructure->units)); passed = false; } // ensure we have multipliers for each field if (strlen(logstructure->multipliers) != fieldcount) { - Debug("fieldcount=%u does not match multipliercount=%lu", - fieldcount, strlen(logstructure->multipliers)); + Debug("fieldcount=%u does not match multipliercount=%u", + (unsigned)fieldcount, (unsigned)strlen(logstructure->multipliers)); passed = false; }