Commit 6baf14e7 authored by James Bottomley's avatar James Bottomley Committed by James Bottomley

fix printk warning in sg.c

sizeof() != int
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 27d5c1ee
...@@ -574,8 +574,9 @@ sg_write(struct file *filp, const char __user *buf, size_t count, loff_t * ppos) ...@@ -574,8 +574,9 @@ sg_write(struct file *filp, const char __user *buf, size_t count, loff_t * ppos)
"sg_write: data in/out %d/%d bytes for SCSI command 0x%x--" "sg_write: data in/out %d/%d bytes for SCSI command 0x%x--"
"guessing data in;\n" KERN_WARNING " " "guessing data in;\n" KERN_WARNING " "
"program %s not setting count and/or reply_len properly\n", "program %s not setting count and/or reply_len properly\n",
old_hdr.reply_len - SZ_SG_HEADER, input_size, old_hdr.reply_len - (int)SZ_SG_HEADER,
(unsigned int) cmnd[0], current->comm); input_size, (unsigned int) cmnd[0],
current->comm);
k = sg_common_write(sfp, srp, cmnd, sfp->timeout, blocking); k = sg_common_write(sfp, srp, cmnd, sfp->timeout, blocking);
return (k < 0) ? k : count; return (k < 0) ? k : count;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment