diff options
Diffstat (limited to 'net/atm/atm_sysfs.c')
-rw-r--r-- | net/atm/atm_sysfs.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/net/atm/atm_sysfs.c b/net/atm/atm_sysfs.c index b5674dc2083d..f693b78eb467 100644 --- a/net/atm/atm_sysfs.c +++ b/net/atm/atm_sysfs.c | |||
@@ -42,13 +42,14 @@ static ssize_t show_atmaddress(struct device *cdev, | |||
42 | 42 | ||
43 | spin_lock_irqsave(&adev->lock, flags); | 43 | spin_lock_irqsave(&adev->lock, flags); |
44 | list_for_each_entry(aaddr, &adev->local, entry) { | 44 | list_for_each_entry(aaddr, &adev->local, entry) { |
45 | for(i = 0, j = 0; i < ATM_ESA_LEN; ++i, ++j) { | 45 | for (i = 0, j = 0; i < ATM_ESA_LEN; ++i, ++j) { |
46 | if (j == *fmt) { | 46 | if (j == *fmt) { |
47 | pos += sprintf(pos, "."); | 47 | pos += sprintf(pos, "."); |
48 | ++fmt; | 48 | ++fmt; |
49 | j = 0; | 49 | j = 0; |
50 | } | 50 | } |
51 | pos += sprintf(pos, "%02x", aaddr->addr.sas_addr.prv[i]); | 51 | pos += sprintf(pos, "%02x", |
52 | aaddr->addr.sas_addr.prv[i]); | ||
52 | } | 53 | } |
53 | pos += sprintf(pos, "\n"); | 54 | pos += sprintf(pos, "\n"); |
54 | } | 55 | } |
@@ -78,17 +79,17 @@ static ssize_t show_link_rate(struct device *cdev, | |||
78 | 79 | ||
79 | /* show the link rate, not the data rate */ | 80 | /* show the link rate, not the data rate */ |
80 | switch (adev->link_rate) { | 81 | switch (adev->link_rate) { |
81 | case ATM_OC3_PCR: | 82 | case ATM_OC3_PCR: |
82 | link_rate = 155520000; | 83 | link_rate = 155520000; |
83 | break; | 84 | break; |
84 | case ATM_OC12_PCR: | 85 | case ATM_OC12_PCR: |
85 | link_rate = 622080000; | 86 | link_rate = 622080000; |
86 | break; | 87 | break; |
87 | case ATM_25_PCR: | 88 | case ATM_25_PCR: |
88 | link_rate = 25600000; | 89 | link_rate = 25600000; |
89 | break; | 90 | break; |
90 | default: | 91 | default: |
91 | link_rate = adev->link_rate * 8 * 53; | 92 | link_rate = adev->link_rate * 8 * 53; |
92 | } | 93 | } |
93 | pos += sprintf(pos, "%d\n", link_rate); | 94 | pos += sprintf(pos, "%d\n", link_rate); |
94 | 95 | ||