]> git.hungrycats.org Git - linux/commitdiff
fix printk warning in sg.c
authorJames Bottomley <jejb@mulgrave.(none)>
Fri, 10 Sep 2004 14:47:25 +0000 (10:47 -0400)
committerJames Bottomley <jejb@raven.il.steeleye.com>
Fri, 10 Sep 2004 14:47:25 +0000 (10:47 -0400)
sizeof() != int

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/sg.c

index 574c80b3f4ba59742e3098ad2fce0fdb0b99d2cf..b4267f6500c0d4de1b47865ff8e57f21bef95f92 100644 (file)
@@ -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--"
                               "guessing data in;\n" KERN_WARNING "   "
                               "program %s not setting count and/or reply_len properly\n",
-                              old_hdr.reply_len - SZ_SG_HEADER, input_size,
-                              (unsigned int) cmnd[0], current->comm);
+                              old_hdr.reply_len - (int)SZ_SG_HEADER,
+                              input_size, (unsigned int) cmnd[0],
+                              current->comm);
        k = sg_common_write(sfp, srp, cmnd, sfp->timeout, blocking);
        return (k < 0) ? k : count;
 }