Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf31c5e0 authored by Fabio Estevam's avatar Fabio Estevam Committed by Russell King
Browse files

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: default avatarFrank Mori Hess <fmh6jj@gmail.com>
Signed-off-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 29b4817d
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -436,7 +436,7 @@ static int __init atomic_pool_init(void)
		gen_pool_set_algo(atomic_pool,
		gen_pool_set_algo(atomic_pool,
				gen_pool_first_fit_order_align,
				gen_pool_first_fit_order_align,
				(void *)PAGE_SHIFT);
				(void *)PAGE_SHIFT);
		pr_info("DMA: preallocated %zd KiB pool for atomic coherent allocations\n",
		pr_info("DMA: preallocated %zu KiB pool for atomic coherent allocations\n",
		       atomic_pool_size / 1024);
		       atomic_pool_size / 1024);
		return 0;
		return 0;
	}
	}
@@ -445,7 +445,7 @@ static int __init atomic_pool_init(void)
	gen_pool_destroy(atomic_pool);
	gen_pool_destroy(atomic_pool);
	atomic_pool = NULL;
	atomic_pool = NULL;
out:
out:
	pr_err("DMA: failed to allocate %zx KiB pool for atomic coherent allocation\n",
	pr_err("DMA: failed to allocate %zu KiB pool for atomic coherent allocation\n",
	       atomic_pool_size / 1024);
	       atomic_pool_size / 1024);
	return -ENOMEM;
	return -ENOMEM;
}
}