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.
This commit is contained in:
Brian Behlendorf 2010-07-10 12:58:48 -07:00
parent b17ca5c674
commit 9820fd89a4
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}