mm:%Lx is non-standard C
A message that is not in the archive (sent off-list or not yet received): [email protected]
Geert Uytterhoeven
Reviewed-byCC linux-m68k.
Quoted 3 lines · shaom Deng
replace %Lx with %lx, because %Lx is not standard
Signed-off-by shaom Deng <[email protected]>
i.e. will queue in the m68k for-v5.20 branch.
arch/m68k/sun3/sun3dvma.c static void print_use(void) · line 82
Quoted 10 lines
arch/m68k/sun3/sun3dvma.c +1
-1@@ -77,7 +77,7 @@ static void print_use(void)pr_info ("%d entries in use total\n" , j);pr_info ("allocation/free calls: %lu/%lu\n" , dvma_allocs, dvma_frees); -pr_info ("allocation/free bytes: %Lx/%Lx\n" , dvma_alloc_bytes, +pr_info ("allocation/free bytes: %lx/%lx\n" , dvma_alloc_bytes, dvma_free_bytes); }
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Quoted 15 lines · Geert Uytterhoeven
CC linux-m68k.
Quoted 3 lines · shaom Deng
replace %Lx with %lx, because %Lx is not standard
Signed-off-by shaom Deng <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>i.e. will queue in the m68k for-v5.20 branch.
Quoted 5 lines
arch/m68k/sun3/sun3dvma.c +0
-0@@ -77,7 +77,7 @@ static void print_use(void)pr_info ("%d entries in use total\n" , j);
Quoted 4 lines
arch/m68k/sun3/sun3dvma.c static void print_use(void) · line 81
Quoted 4 lines
arch/m68k/sun3/sun3dvma.c +1
-1pr_info ("allocation/free calls: %lu/%lu\n" , dvma_allocs, dvma_frees); -pr_info ("allocation/free bytes: %Lx/%Lx\n" , dvma_alloc_bytes, +pr_info ("allocation/free bytes: %lx/%lx\n" , dvma_alloc_bytes, dvma_free_bytes);
Does that actually work? The L modifier is equivalent to ll', not l', and dvma_alloc_bytes and dvma_free_bytes are in fact of type unsigned long long.
Signature · 3 lines
Andreas Schwab, [email protected] GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."
Quoted 16 lines · Andreas Schwab
Quoted 15 lines · Geert Uytterhoeven
CC linux-m68k.
Quoted 3 lines · shaom Deng
replace %Lx with %lx, because %Lx is not standard
Signed-off-by shaom Deng <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>i.e. will queue in the m68k for-v5.20 branch.
Quoted 5 lines
arch/m68k/sun3/sun3dvma.c +0
-0@@ -77,7 +77,7 @@ static void print_use(void)pr_info ("%d entries in use total\n" , j);
Quoted 8 lines
Quoted 4 lines
arch/m68k/sun3/sun3dvma.c static void print_use(void) · line 81
Quoted 4 lines
arch/m68k/sun3/sun3dvma.c +1
-1pr_info ("allocation/free calls: %lu/%lu\n" , dvma_allocs, dvma_frees); -pr_info ("allocation/free bytes: %Lx/%Lx\n" , dvma_alloc_bytes, +pr_info ("allocation/free bytes: %lx/%lx\n" , dvma_alloc_bytes, dvma_free_bytes);Does that actually work? The L modifier is equivalent to
ll', notl', anddvma_alloc_bytesanddvma_free_bytesare in fact of type unsigned long long.
You're absolutely right. More coffee needed....
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds