Commit cdad8570 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[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.
parent 34826924
...@@ -1309,7 +1309,7 @@ cciss_read_capacity(int ctlr, int logvol, ReadCapdata_struct *buf, ...@@ -1309,7 +1309,7 @@ cciss_read_capacity(int ctlr, int logvol, ReadCapdata_struct *buf,
*total_size = 0; *total_size = 0;
*block_size = BLOCK_SIZE; *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); *total_size, *block_size);
return; return;
} }
......
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