From 773dcc34aeb1558ffbd4bc29c9c5e65e936be1fe Mon Sep 17 00:00:00 2001 From: Ramesh Thomas Date: Tue, 4 Oct 2016 00:23:11 -0700 Subject: [PATCH] sample: fs: Fix a compile error flagged by llvm printk format specifier used for size_t (%lu) was not compatible with llvm because it sees size_t as unsigned int. Using %zu makes it portable acroos compilers. Change-Id: If0e732fbaada5f50a975ec912b8147d6b252a2de Signed-off-by: Ramesh Thomas --- tests/filesystem/fat_fs/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/filesystem/fat_fs/src/main.c b/tests/filesystem/fat_fs/src/main.c index ae6e5827898..c4bccb743db 100644 --- a/tests/filesystem/fat_fs/src/main.c +++ b/tests/filesystem/fat_fs/src/main.c @@ -431,7 +431,7 @@ static int list_dir(const char *path) if (entry.type == DIR_ENTRY_DIR) { printk("[DIR ] %s\n", entry.name); } else { - printk("[FILE] %s (size = %lu)\n", + printk("[FILE] %s (size = %zu)\n", entry.name, entry.size); } }