From 9820fd89a4b88bbe22c9758711533420ee8deb36 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Sat, 10 Jul 2010 12:58:48 -0700 Subject: [PATCH] Explicitly cast sizeof() to avoid format warnings Simply explicity cast sizeof() to a 'long int' these numbers will always be small and the removes all ambiguity. --- module/zpios/zpios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zpios/zpios.c b/module/zpios/zpios.c index 9aa3b5c1bb..3edc16105f 100644 --- a/module/zpios/zpios.c +++ b/module/zpios/zpios.c @@ -1042,7 +1042,7 @@ zpios_ioctl_cmd(struct file *file, unsigned long arg) kcmd = kmem_alloc(sizeof(zpios_cmd_t), KM_SLEEP); if (kcmd == NULL) { zpios_print(file, "Unable to kmem_alloc() %ld byte for " - "zpios_cmd_t\n", sizeof(zpios_cmd_t)); + "zpios_cmd_t\n", (long int)sizeof(zpios_cmd_t)); return -ENOMEM; }