aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/parisc
diff options
context:
space:
mode:
authorKyle McMartin <kyle@parisc-linux.org>2006-08-24 21:28:58 -0400
committerMatthew Wilcox <willy@parisc-linux.org>2006-10-04 08:49:25 -0400
commitba9877b6734fb0313bca99ae2077613f24ff5b5c (patch)
tree3d7adfff69e03102734d79ad52362a71e049a342 /drivers/parisc
parent7886089e3c06518c5e65675a932922f915e20e77 (diff)
[PARISC] Pretty print the name of the lba type on kernel boot
(it's pretty useless telling a user they have a whole bunch of TR%d.%d LBAs) Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
Diffstat (limited to 'drivers/parisc')
-rw-r--r--drivers/parisc/lba_pci.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/drivers/parisc/lba_pci.c b/drivers/parisc/lba_pci.c
index 3fe4a77fa16a..33d1806a39cc 100644
--- a/drivers/parisc/lba_pci.c
+++ b/drivers/parisc/lba_pci.c
@@ -1542,8 +1542,8 @@ lba_driver_probe(struct parisc_device *dev)
1542 default: version = "TR4+"; 1542 default: version = "TR4+";
1543 } 1543 }
1544 1544
1545 printk(KERN_INFO "%s version %s (0x%x) found at 0x%lx\n", 1545 printk(KERN_INFO "Elroy version %s (0x%x) found at 0x%lx\n",
1546 MODULE_NAME, version, func_class & 0xf, dev->hpa.start); 1546 version, func_class & 0xf, dev->hpa.start);
1547 1547
1548 if (func_class < 2) { 1548 if (func_class < 2) {
1549 printk(KERN_WARNING "Can't support LBA older than " 1549 printk(KERN_WARNING "Can't support LBA older than "
@@ -1563,14 +1563,18 @@ lba_driver_probe(struct parisc_device *dev)
1563 } 1563 }
1564 1564
1565 } else if (IS_MERCURY(dev) || IS_QUICKSILVER(dev)) { 1565 } else if (IS_MERCURY(dev) || IS_QUICKSILVER(dev)) {
1566 int major, minor;
1567
1566 func_class &= 0xff; 1568 func_class &= 0xff;
1567 version = kmalloc(6, GFP_KERNEL); 1569 major = func_class >> 4, minor = func_class & 0xf;
1568 snprintf(version, 6, "TR%d.%d",(func_class >> 4),(func_class & 0xf)); 1570
1569 /* We could use one printk for both Elroy and Mercury, 1571 /* We could use one printk for both Elroy and Mercury,
1570 * but for the mask for func_class. 1572 * but for the mask for func_class.
1571 */ 1573 */
1572 printk(KERN_INFO "%s version %s (0x%x) found at 0x%lx\n", 1574 printk(KERN_INFO "%s version TR%d.%d (0x%x) found at 0x%lx\n",
1573 MODULE_NAME, version, func_class & 0xff, dev->hpa.start); 1575 IS_MERCURY(dev) ? "Mercury" : "Quicksilver", major,
1576 minor, func_class, dev->hpa.start);
1577
1574 cfg_ops = &mercury_cfg_ops; 1578 cfg_ops = &mercury_cfg_ops;
1575 } else { 1579 } else {
1576 printk(KERN_ERR "Unknown LBA found at 0x%lx\n", dev->hpa.start); 1580 printk(KERN_ERR "Unknown LBA found at 0x%lx\n", dev->hpa.start);