From 47cc70157c6610d4c01a7ab4f8f0d24ab054b43b Mon Sep 17 00:00:00 2001 From: Philip Prindeville Date: Fri, 10 Mar 2017 20:12:15 -0700 Subject: Don't use %L width specifier with integer values MUSL doesn't support %L except for floating-point arguments; therefore, %ll must be used instead with integer arguments. Signed-off-by: Philip Prindeville Signed-off-by: Simon Horman --- kexec/arch/mips/kexec-mips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kexec/arch/mips/kexec-mips.c') diff --git a/kexec/arch/mips/kexec-mips.c b/kexec/arch/mips/kexec-mips.c index ee3cd3a..2e5b700 100644 --- a/kexec/arch/mips/kexec-mips.c +++ b/kexec/arch/mips/kexec-mips.c @@ -48,7 +48,7 @@ int get_memory_ranges(struct memory_range **range, int *ranges, while (fgets(line, sizeof(line), fp) != 0) { if (memory_ranges >= MAX_MEMORY_RANGES) break; - count = sscanf(line, "%Lx-%Lx : %n", &start, &end, &consumed); + count = sscanf(line, "%llx-%llx : %n", &start, &end, &consumed); if (count != 2) continue; str = line + consumed; -- cgit