From 445c064b54b24e09ef7c22bb18a915b7c780e64b Mon Sep 17 00:00:00 2001 From: Mike Fiore Date: Wed, 24 Apr 2013 11:40:13 -0500 Subject: product info: add newlines after mac addresses, change *-mac to mac-* for consistency --- io-module/mts_io.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/io-module/mts_io.c b/io-module/mts_io.c index 4371e41..871bfe8 100644 --- a/io-module/mts_io.c +++ b/io-module/mts_io.c @@ -1910,16 +1910,16 @@ static ssize_t mts_attr_show_product_info(struct device *dev, value = sprintf(buf, "%.32s\n", id_eeprom.hw_version); } else if (strcmp(attr->attr.name, "imei") == 0) { value = sprintf(buf, "%.32s\n", id_eeprom.imei); - } else if (strcmp(attr->attr.name, "wifi-mac") == 0) { - value = sprintf(buf, "%02X:%02X:%02X:%02X:%02X:%02X", + } else if (strcmp(attr->attr.name, "mac-wifi") == 0) { + value = sprintf(buf, "%02X:%02X:%02X:%02X:%02X:%02X\n", id_eeprom.mac_wifi[0], id_eeprom.mac_wifi[1], id_eeprom.mac_wifi[2], id_eeprom.mac_wifi[3], id_eeprom.mac_wifi[4], id_eeprom.mac_wifi[5]); - } else if (strcmp(attr->attr.name, "eth-mac") == 0) { - value = sprintf(buf, "%02X:%02X:%02X:%02X:%02X:%02X", + } else if (strcmp(attr->attr.name, "mac-eth") == 0) { + value = sprintf(buf, "%02X:%02X:%02X:%02X:%02X:%02X\n", id_eeprom.mac_addr[0], id_eeprom.mac_addr[1], id_eeprom.mac_addr[2], @@ -1958,10 +1958,10 @@ static DEVICE_ATTR_RO_MTS(dev_attr_hw_version, "hw-version", static DEVICE_ATTR_RO_MTS(dev_attr_imei, "imei", mts_attr_show_product_info); -static DEVICE_ATTR_RO_MTS(dev_attr_wifi_mac, "wifi-mac", +static DEVICE_ATTR_RO_MTS(dev_attr_wifi_mac, "mac-wifi", mts_attr_show_product_info); -static DEVICE_ATTR_RO_MTS(dev_attr_eth_mac, "eth-mac", +static DEVICE_ATTR_RO_MTS(dev_attr_eth_mac, "mac-eth", mts_attr_show_product_info); static struct attribute *mt100eocg_platform_attributes[] = { -- cgit v1.2.3