]> git.hungrycats.org Git - linux/commitdiff
[PATCH] cciss: printk format fix
authorAndrew Morton <akpm@osdl.org>
Sun, 8 Feb 2004 01:43:40 +0000 (17:43 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Sun, 8 Feb 2004 01:43:40 +0000 (17:43 -0800)
From: mikem@beardog.cca.cpqcorp.net

This patch changes a format specifier to unsigned to prevent the number of
blocks being displayed as a negative value on very large volumes.

drivers/block/cciss.c

index 646466f8007af703b01742e1bc61566f61acc536..7b3a3b134aa089aa2fd7dc869a050da65e62a857 100644 (file)
@@ -1309,7 +1309,7 @@ cciss_read_capacity(int ctlr, int logvol, ReadCapdata_struct *buf,
                *total_size = 0;
                *block_size = BLOCK_SIZE;
        }
-       printk(KERN_INFO "      blocks= %d block_size= %d\n",
+       printk(KERN_INFO "      blocks= %u block_size= %d\n",
                *total_size, *block_size);
        return;
 }