uavcannode_gps_demo:Use inttypes

This commit is contained in:
David Sidrane 2021-06-02 12:17:31 -07:00 committed by Julian Oes
parent 616401190c
commit 42e4ea86b1
3 changed files with 5 additions and 2 deletions

View File

@ -42,6 +42,7 @@
#include <sched.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
@ -299,7 +300,7 @@ void processTxRxOnce(CanardInstance *ins, CanardSocketInstance *sock_ins, int ti
// It is possible to statically prove that an out-of-memory will never occur for a given application if
// the heap is sized correctly; for background, refer to the Robson's Proof and the documentation for O1Heap.
// Reception of an invalid frame is NOT an error.
fprintf(stderr, "Receive error %d\n", result);
fprintf(stderr, "Receive error %" PRId32 "\n", result);
} else if (result == 1) {
printf("Receive portId %i\n", receive.port_id);

View File

@ -1,5 +1,6 @@
#include "socketcan.h"
#include <stdio.h>
#include <net/if.h>
#include <sys/ioctl.h>
#include <string.h>

View File

@ -5,6 +5,7 @@
* Author: hovergames
*/
#include <inttypes.h>
#include <string.h>
#include "uorb_converter.h"
@ -95,7 +96,7 @@ void uorbProcessSub(int timeout_msec)
// An error has occurred: either an argument is invalid or we've ran out of memory.
// It is possible to statically prove that an out-of-memory will never occur for a given application if the
// heap is sized correctly; for background, refer to the Robson's Proof and the documentation for O1Heap.
PX4_ERR("canardTxPush error %d", result);
PX4_ERR("canardTxPush error %" PRId32, result);
}
}