diff --git a/examples/romfs/romfs_main.c b/examples/romfs/romfs_main.c index da9f42813..80e9b1110 100644 --- a/examples/romfs/romfs_main.c +++ b/examples/romfs/romfs_main.c @@ -60,7 +60,9 @@ #include #include #include +#include #include +#include #include #include #include @@ -274,7 +276,8 @@ static void checkattributes(const char *path, mode_t mode, size_t size) if (size != buf.st_size) { - printf(" -- ERROR: Expected size %d, got %d\n", mode, buf.st_size); + printf(" -- ERROR: Expected size %zu, got %ju\n", size, + (uintmax_t)buf.st_size); g_nerrors++; } }