From: Fabio Estevam <[email protected]>

Use %zu for printing 'size_t' in order to fix the following build
warning:

kernel/printk/nmi.c:143:3: warning: format '%lu' expects argument of
type 'long unsigned int', but argument 3 has type 'size_t' [-Wformat=]

Signed-off-by: Fabio Estevam <[email protected]>
---
 kernel/printk/nmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/printk/nmi.c b/kernel/printk/nmi.c
index 92c61e9..cdee270 100644
--- a/kernel/printk/nmi.c
+++ b/kernel/printk/nmi.c
@@ -140,7 +140,7 @@ more:
         * @len must only increase.
         */
        if (i && i >= len)
-               pr_err("printk_nmi_flush: internal error: i=%d >= len=%lu\n",
+               pr_err("printk_nmi_flush: internal error: i=%d >= len=%zu\n",
                       i, len);
 
        if (!len)
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to