Re: [PATCH] malloc_simple: Remove usage of unsupported %zx format string

2022-02-11 Thread Tom Rini
On Thu, Feb 03, 2022 at 07:51:37PM +0100, Pali Rohár wrote: > Replace %zx by %lx and cast size_t to ulong. > > U-Boot currently prints garbage debug output: > size=x, ptr=18, limit=18: 4002a000 > > With this change it prints correct debug data: > size=18, ptr=18, limit=2000: 4002a000 > > Signed

Re: [PATCH] malloc_simple: Remove usage of unsupported %zx format string

2022-02-04 Thread Pali Rohár
On Thursday 03 February 2022 14:19:41 Simon Glass wrote: > Hi Pali, > > On Thu, 3 Feb 2022 at 11:51, Pali Rohár wrote: > > > > Replace %zx by %lx and cast size_t to ulong. > > > > U-Boot currently prints garbage debug output: > > size=x, ptr=18, limit=18: 4002a000 > > Do you mean in SPL? Yes, t

Re: [PATCH] malloc_simple: Remove usage of unsupported %zx format string

2022-02-03 Thread Simon Glass
Hi Pali, On Thu, 3 Feb 2022 at 11:51, Pali Rohár wrote: > > Replace %zx by %lx and cast size_t to ulong. > > U-Boot currently prints garbage debug output: > size=x, ptr=18, limit=18: 4002a000 Do you mean in SPL? > > With this change it prints correct debug data: > size=18, ptr=18, limit=2000: 4

Re: [PATCH] malloc_simple: Remove usage of unsupported %zx format string

2022-02-03 Thread Tom Rini
On Thu, Feb 03, 2022 at 02:28:23PM -0500, Sean Anderson wrote: > > > On 2/3/22 2:25 PM, Sean Anderson wrote: > > Hi Pali, > > > > On 2/3/22 1:51 PM, Pali Rohár wrote: > >> Replace %zx by %lx and cast size_t to ulong. > >> > >> U-Boot currently prints garbage debug output: > >> size=x, ptr=18, l

Re: [PATCH] malloc_simple: Remove usage of unsupported %zx format string

2022-02-03 Thread Sean Anderson
On 2/3/22 2:25 PM, Sean Anderson wrote: > Hi Pali, > > On 2/3/22 1:51 PM, Pali Rohár wrote: >> Replace %zx by %lx and cast size_t to ulong. >> >> U-Boot currently prints garbage debug output: >> size=x, ptr=18, limit=18: 4002a000 >> >> With this change it prints correct debug data: >> size=18

Re: [PATCH] malloc_simple: Remove usage of unsupported %zx format string

2022-02-03 Thread Sean Anderson
Hi Pali, On 2/3/22 1:51 PM, Pali Rohár wrote: > Replace %zx by %lx and cast size_t to ulong. > > U-Boot currently prints garbage debug output: > size=x, ptr=18, limit=18: 4002a000 > > With this change it prints correct debug data: > size=18, ptr=18, limit=2000: 4002a000 > > Signed-off-by: Pali

[PATCH] malloc_simple: Remove usage of unsupported %zx format string

2022-02-03 Thread Pali Rohár
Replace %zx by %lx and cast size_t to ulong. U-Boot currently prints garbage debug output: size=x, ptr=18, limit=18: 4002a000 With this change it prints correct debug data: size=18, ptr=18, limit=2000: 4002a000 Signed-off-by: Pali Rohár --- common/malloc_simple.c | 2 +- 1 file changed, 1 inse