This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit a0856788796eb9a5965ffd8f6680871b41aaf466 Author: YAMAMOTO Takashi <[email protected]> AuthorDate: Thu Nov 5 20:57:54 2020 +0900 system/ramtest/ramtest.c: Fix printf warnings --- system/ramtest/ramtest.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/system/ramtest/ramtest.c b/system/ramtest/ramtest.c index 8204010..d3912ab 100644 --- a/system/ramtest/ramtest.c +++ b/system/ramtest/ramtest.c @@ -142,7 +142,8 @@ static void parse_commandline(int argc, char **argv, info->start = (uintptr_t)strtoul(argv[optind], &ptr, 16); if (*ptr != '\0') { - printf(RAMTEST_PREFIX "Invalid <hex-address>: %s->%lx [%02x]\n", + printf(RAMTEST_PREFIX "Invalid <hex-address>: %s->%" PRIxPTR + " [%02x]\n", argv[optind], info->start, *ptr); show_usage(argv[0], EXIT_FAILURE); } @@ -157,7 +158,7 @@ static void parse_commandline(int argc, char **argv, info->size = (size_t)strtoul(argv[optind], &ptr, 10); if (*ptr != '\0') { - printf(RAMTEST_PREFIX "Invalid <decimal-size>: %s->%lx [%02x]\n", + printf(RAMTEST_PREFIX "Invalid <decimal-size>: %s->%zx [%02x]\n", argv[optind], info->size, *ptr); show_usage(argv[0], EXIT_FAILURE); }
