mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 16:25:26 +03:00
All: Fix warnings reported by -Wformat
Since the tfp_printf() functions now have format attributes, the format of the string has to match the arguments.
This commit is contained in:
parent
af0b33d11f
commit
3dda0cbf7c
5 changed files with 29 additions and 29 deletions
|
@ -116,7 +116,7 @@ static void logPrint(const char *buf, size_t size)
|
|||
static size_t logFormatPrefix(char *buf, const timeMs_t timeMs)
|
||||
{
|
||||
// Write timestamp
|
||||
return tfp_sprintf(buf, LOG_PREFIX, timeMs / 1000, timeMs % 1000);
|
||||
return tfp_sprintf(buf, LOG_PREFIX, (int)(timeMs / 1000), (int)(timeMs % 1000));
|
||||
}
|
||||
|
||||
static bool logHasOutput(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue