Skip to content

Commit 8c5c506

Browse files
raiden00plsimbit18
authored andcommitted
testing/cachetest: fix compilation error for arm64
fix compilation error: cachetest_main.c:37:26: error: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'size_t' {aka 'long unsigned int'} [-Werror=format=] 37 | #define CACHETEST_PREFIX "CACHE Test: " | ^~~~~~~~~~~~~~ cachetest_main.c:150:20: note: in expansion of macro 'CACHETEST_PREFIX' 150 | syslog(LOG_INFO, CACHETEST_PREFIX "waddr:%p, uncacheble addr start:%p," | ^~~~~~~~~~~~~~~~ cachetest_main.c:151:17: note: format string is defined here 151 | "size:%u\n", info->waddr, | ~^ | | | unsigned int | %lu Signed-off-by: raiden00pl <[email protected]>
1 parent a78a3a4 commit 8c5c506

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/mm/cachetest/cachetest_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ static void cachetest_parse_commandline(int argc, FAR char **argv,
148148
}
149149

150150
syslog(LOG_INFO, CACHETEST_PREFIX "waddr:%p, uncacheble addr start:%p,"
151-
"size:%u\n", info->waddr,
151+
"size:%zu\n", info->waddr,
152152
(FAR char *)((uintptr_t)info->waddr | info->offset), info->size);
153153
}
154154

0 commit comments

Comments
 (0)