summaryrefslogtreecommitdiff
path: root/io-module
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2013-04-24 11:40:13 -0500
committerMike Fiore <mfiore@multitech.com>2013-04-24 11:40:13 -0500
commit445c064b54b24e09ef7c22bb18a915b7c780e64b (patch)
tree8970d6061826fc1dad1f55ece39a766fe824de86 /io-module
parent2ef29e4147f9fb17ea9da54cf56e73f31228dbbf (diff)
downloadcdp-io-controller-445c064b54b24e09ef7c22bb18a915b7c780e64b.tar.gz
cdp-io-controller-445c064b54b24e09ef7c22bb18a915b7c780e64b.tar.bz2
cdp-io-controller-445c064b54b24e09ef7c22bb18a915b7c780e64b.zip
product info: add newlines after mac addresses, change *-mac to mac-* for consistency
Diffstat (limited to 'io-module')
-rw-r--r--io-module/mts_io.c12
1 files 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[] = {