[U-Boot] [PATCH] The type expected by %zd is ssize_t, but it was being passed a size_t.

Gabe Black gabeblack at chromium.org
Sat Oct 29 00:13:27 CEST 2011


Signed-off-by: Gabe Black <gabeblack at chromium.org>
---
 common/cmd_nvedit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c
index 396a171..d9dc3f2 100644
--- a/common/cmd_nvedit.c
+++ b/common/cmd_nvedit.c
@@ -862,7 +862,7 @@ static int do_env_import(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv
 				" - truncated\n", MAX_ENV_SIZE);
 		}
 		++size;
-		printf("## Info: input data size = %zd = 0x%zX\n", size, size);
+		printf("## Info: input data size = %zu = 0x%zX\n", size, size);
 	}
 
 	if (chk) {
-- 
1.7.3.1



More information about the U-Boot mailing list