Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: 8587/1: dma-mapping: Use %zu for printing a size_t variable

According to Documentation/printk-formats.txt when printing
a size_t variable we should use %zu or %zx format specifiers.

As we are printing a memory size value, we should better use %zu
in this case.

Reported-by: Frank Mori Hess <fmh6jj@gmail.com>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Fabio Estevam and committed by
Russell King
bf31c5e0 29b4817d

+2 -2
+2 -2
arch/arm/mm/dma-mapping.c
··· 436 436 gen_pool_set_algo(atomic_pool, 437 437 gen_pool_first_fit_order_align, 438 438 (void *)PAGE_SHIFT); 439 - pr_info("DMA: preallocated %zd KiB pool for atomic coherent allocations\n", 439 + pr_info("DMA: preallocated %zu KiB pool for atomic coherent allocations\n", 440 440 atomic_pool_size / 1024); 441 441 return 0; 442 442 } ··· 445 445 gen_pool_destroy(atomic_pool); 446 446 atomic_pool = NULL; 447 447 out: 448 - pr_err("DMA: failed to allocate %zx KiB pool for atomic coherent allocation\n", 448 + pr_err("DMA: failed to allocate %zu KiB pool for atomic coherent allocation\n", 449 449 atomic_pool_size / 1024); 450 450 return -ENOMEM; 451 451 }