rt2x00:Add debug message for new chipset
authorJohn Li <chen-yang.li@mediatek.com>
Wed, 8 Feb 2012 13:25:24 +0000 (21:25 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Feb 2012 19:47:37 +0000 (14:47 -0500)
Signed-off-by: John Li <chen-yang.li@mediatek.com>
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800lib.c

index 772d4aec303ad9661588e661f36229ebb284a75d..f1df929e97a720e6f0c15d33ab2487bfcd96164a 100644 (file)
@@ -4053,7 +4053,7 @@ int rt2800_init_eeprom(struct rt2x00_dev *rt2x00dev)
        case RT5390:
                break;
        default:
-               ERROR(rt2x00dev, "Invalid RT chipset detected.\n");
+               ERROR(rt2x00dev, "Invalid RT chipset 0x%04x detected.\n", rt2x00dev->chip.rt);
                return -ENODEV;
        }
 
@@ -4072,7 +4072,7 @@ int rt2800_init_eeprom(struct rt2x00_dev *rt2x00dev)
        case RF5390:
                break;
        default:
-               ERROR(rt2x00dev, "Invalid RF chipset 0x%x detected.\n",
+               ERROR(rt2x00dev, "Invalid RF chipset 0x%04x detected.\n",
                      rt2x00dev->chip.rf);
                return -ENODEV;
        }