We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31fceca commit 61b0943Copy full SHA for 61b0943
gear-lib/libposix/test_libposix.c
@@ -23,6 +23,8 @@
23
#include <stdio.h>
24
#include <stdlib.h>
25
#ifdef OS_LINUX
26
+#define __STDC_FORMAT_MACROS
27
+#include <inttypes.h>
28
#include <unistd.h>
29
#include <pthread.h>
30
#include <sys/types.h>
@@ -45,7 +47,7 @@ void foo()
45
47
if (0 > stat(file, &st)) {
46
48
printf("stat %s failed\n", file);
49
}
- printf("%s size=%zu\n", file, (uint32_t)st.st_size);
50
+ printf("%s size=%" PRIu32 "\n", file, (uint32_t)st.st_size);
51
get_proc_name(proc, sizeof(proc));
52
printf("proc name = %s\n", proc);
53
0 commit comments