Fix Error: version_main.c:124:42: error: format specifies type 'long' but the argument has type 'uint32_t' (aka 'unsigned int') [-Werror,-Wformat]

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-13 19:10:48 +08:00 committed by Petro Karashchenko
parent 25f200e9b0
commit da30a87b81

View File

@ -118,10 +118,9 @@ int main(int argc, FAR char *argv[])
return rc; return rc;
} }
printf("Image version %d.%d.%d.%ld\n", raw_header.version.major, printf("Image version %d.%d.%d.%" PRId32 "\n",
raw_header.version.minor, raw_header.version.major, raw_header.version.minor,
raw_header.version.revision, raw_header.version.revision, raw_header.version.build_num);
raw_header.version.build_num);
return 0; return 0;
} }