systemcmds:Use inttypes

This commit is contained in:
David Sidrane
2021-06-16 17:07:47 +02:00
committed by Julian Oes
parent 62fd132047
commit 1b80018f30
7 changed files with 50 additions and 38 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
/****************************************************************************
*
* Copyright (c) 2014 Andrew Tridgell. All rights reserved.
* Copyright (c) 2014, 2021 Andrew Tridgell. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -40,6 +40,7 @@
*/
#include <px4_platform_common/px4_config.h>
#include <inttypes.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
@@ -76,7 +77,7 @@ static uint32_t allocate_blocks(struct block **blocks)
nblocks++;
}
printf("Allocated %u blocks\n", nblocks);
printf("Allocated %" PRIu32 " blocks\n", nblocks);
return nblocks;
}