Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1294936 > unrolled thread
| Started by | Fabio Estevam <festevam@gmail.com> |
|---|---|
| First post | 2015-12-18 16:00 +0100 |
| Last post | 2015-12-18 16:00 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH] printk: nmi: Use %zu for printing 'size_t' Fabio Estevam <festevam@gmail.com> - 2015-12-18 16:00 +0100
| From | Fabio Estevam <festevam@gmail.com> |
|---|---|
| Date | 2015-12-18 16:00 +0100 |
| Subject | [PATCH] printk: nmi: Use %zu for printing 'size_t' |
| Message-ID | <qH4FI-6Xw-13@gated-at.bofh.it> |
From: Fabio Estevam <fabio.estevam@nxp.com>
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 <fabio.estevam@nxp.com>
---
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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to top | Article view | linux.kernel
csiph-web