* [PATCH]: remove unneeded spaces in cciss output for attached volumes
@ 2006-09-14 11:43 Metathronius Galabant
0 siblings, 0 replies; only message in thread
From: Metathronius Galabant @ 2006-09-14 11:43 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 509 bytes --]
Hi,
please see the following patch against the CCISS driver (HP/Compaq
SmartArray Controllers).
It removes the awkward spaces after the "=" when displaying the
geometry of the attached volumes (and saves 5 bytes of kernel ;)
Before:
cciss: using DAC cycles
blocks= 286734240 block_size= 512
heads= 255, sectors= 32, cylinders= 35139
After:
cciss: using DAC cycles
blocks=286734240 block_size=512
heads=255, sectors=32, cylinders=35139
The following is against 2.6.18-rc6.
Cheers,
M.
[-- Attachment #2: cciss-space-patch.diff --]
[-- Type: text/plain, Size: 867 bytes --]
Signed-off by: Metathronius Galabant <m.galabant@gmail.com>
diff -ru linux-2.6.18-rc6/drivers/block/cciss.c linux-2.6.18-rc6-f/drivers/block/cciss.c
--- linux-2.6.18-rc6/drivers/block/cciss.c 2006-09-11 15:57:54.000000000 +0200
+++ linux-2.6.18-rc6-f/drivers/block/cciss.c 2006-09-11 16:32:42.000000000 +0200
@@ -1934,7 +1934,7 @@
} else { /* Get geometry failed */
printk(KERN_WARNING "cciss: reading geometry failed\n");
}
- printk(KERN_INFO " heads= %d, sectors= %d, cylinders= %d\n\n",
+ printk(KERN_INFO " heads=%d, sectors=%d, cylinders=%d\n\n",
drv->heads, drv->sectors, drv->cylinders);
}
@@ -1962,7 +1962,7 @@
*total_size = 0;
*block_size = BLOCK_SIZE;
}
- printk(KERN_INFO " blocks= %u block_size= %d\n",
+ printk(KERN_INFO " blocks=%u block_size=%d\n",
*total_size, *block_size);
return;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-09-14 11:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-14 11:43 [PATCH]: remove unneeded spaces in cciss output for attached volumes Metathronius Galabant
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.