From cdad85705d6c7cc8c2170995e78c8a1fc9cbfe1b Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sat, 7 Feb 2004 17:43:40 -0800 Subject: [PATCH] cciss: printk format fix 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 646466f8007a..7b3a3b134aa0 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c @@ -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; } -- cgit v1.2.3