[libubootenv] uboot_env: fix print format of type size_t
diff mbox series

Message ID 20190724150516.20854-1-sbabic@denx.de
State Accepted
Headers show
Series
  • [libubootenv] uboot_env: fix print format of type size_t
Related show

Commit Message

Stefano Babic July 24, 2019, 3:05 p.m. UTC
From: Lars Lockenvitz <Lars.Lockenvitz@smartray.com>

Signed-off-by: Lars Lockenvitz <Lars.Lockenvitz@smartray.com>
---
 src/uboot_env.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/src/uboot_env.c b/src/uboot_env.c
index f546e10..726c433 100644
--- a/src/uboot_env.c
+++ b/src/uboot_env.c
@@ -1015,7 +1015,7 @@  int libuboot_read_config(struct uboot_ctx *ctx, const char *config)
 		if (line[0] == '#')
 			continue;
 
-		ret = sscanf(line, "%ms %lli %lx %lx %lx",
+		ret = sscanf(line, "%ms %lli %zx %zx %lx",
 				&tmp,
 				&dev->offset,
 				&dev->envsize,