[NET]: Introduce and use print_mac() and DECLARE_MAC_BUF()
[deliverable/linux.git] / drivers / net / wireless / rt2x00 / rt2500pci.c
index f6115c626fa703d15d6bbac5c0ec682746c01f00..e8d63aaab7bce928d00b91195e50e2488bf66388 100644 (file)
@@ -1509,8 +1509,11 @@ static int rt2500pci_validate_eeprom(struct rt2x00_dev *rt2x00dev)
         */
        mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0);
        if (!is_valid_ether_addr(mac)) {
+               DECLARE_MAC_BUF(macbuf);
+
                random_ether_addr(mac);
-               EEPROM(rt2x00dev, "MAC: " MAC_FMT "\n", MAC_ARG(mac));
+               EEPROM(rt2x00dev, "MAC: %s\n",
+                      print_mac(macbuf, mac));
        }
 
        rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA, &word);
This page took 0.025018 seconds and 5 git commands to generate.