drivers/message/i2o/i2o_proc.c: use %pM to show MAC address
Use the %pM kernel extension to display the MAC address. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
eacc4d6a7d
Коммит
cf30273bea
|
@ -111,10 +111,7 @@ static int print_serial_number(struct seq_file *seq, u8 * serialno, int max_len)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case I2O_SNFORMAT_LAN48_MAC: /* LAN-48 MAC Address */
|
case I2O_SNFORMAT_LAN48_MAC: /* LAN-48 MAC Address */
|
||||||
seq_printf(seq,
|
seq_printf(seq, "LAN-48 MAC address @ %pM", &serialno[2]);
|
||||||
"LAN-48 MAC address @ %02X:%02X:%02X:%02X:%02X:%02X",
|
|
||||||
serialno[2], serialno[3],
|
|
||||||
serialno[4], serialno[5], serialno[6], serialno[7]);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case I2O_SNFORMAT_WAN: /* WAN MAC Address */
|
case I2O_SNFORMAT_WAN: /* WAN MAC Address */
|
||||||
|
@ -126,10 +123,8 @@ static int print_serial_number(struct seq_file *seq, u8 * serialno, int max_len)
|
||||||
case I2O_SNFORMAT_LAN64_MAC: /* LAN-64 MAC Address */
|
case I2O_SNFORMAT_LAN64_MAC: /* LAN-64 MAC Address */
|
||||||
/* FIXME: Figure out what a LAN-64 address really looks like?? */
|
/* FIXME: Figure out what a LAN-64 address really looks like?? */
|
||||||
seq_printf(seq,
|
seq_printf(seq,
|
||||||
"LAN-64 MAC address @ [?:%02X:%02X:?] %02X:%02X:%02X:%02X:%02X:%02X",
|
"LAN-64 MAC address @ [?:%02X:%02X:?] %pM",
|
||||||
serialno[8], serialno[9],
|
serialno[8], serialno[9], &serialno[2]);
|
||||||
serialno[2], serialno[3],
|
|
||||||
serialno[4], serialno[5], serialno[6], serialno[7]);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case I2O_SNFORMAT_DDM: /* I2O DDM */
|
case I2O_SNFORMAT_DDM: /* I2O DDM */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче