diff options
author | Hans Wennborg <hans@hanshq.net> | 2014-08-03 20:18:20 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-05 16:04:32 -0400 |
commit | 597aec3f93616c6aa73c3fb1d008f66f2ede9f4c (patch) | |
tree | ede1411d804cd7f65d2b1b0fa74d2d4103a767fc /drivers/atm | |
parent | 67a24ac18b0262178ba9f05501b2c6e6731d449a (diff) |
drivers: atm: fix %d confusingly prefixed with 0x in format strings
Signed-off-by: Hans Wennborg <hans@hanshq.net>
Acked-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/atm')
-rw-r--r-- | drivers/atm/eni.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/atm/eni.c b/drivers/atm/eni.c index b1955ba40d63..d65975aba4ec 100644 --- a/drivers/atm/eni.c +++ b/drivers/atm/eni.c | |||
@@ -2155,7 +2155,7 @@ static int eni_proc_read(struct atm_dev *dev,loff_t *pos,char *page) | |||
2155 | 2155 | ||
2156 | if (!tx->send) continue; | 2156 | if (!tx->send) continue; |
2157 | if (!--left) { | 2157 | if (!--left) { |
2158 | return sprintf(page,"tx[%d]: 0x%ld-0x%ld " | 2158 | return sprintf(page, "tx[%d]: 0x%lx-0x%lx " |
2159 | "(%6ld bytes), rsv %d cps, shp %d cps%s\n",i, | 2159 | "(%6ld bytes), rsv %d cps, shp %d cps%s\n",i, |
2160 | (unsigned long) (tx->send - eni_dev->ram), | 2160 | (unsigned long) (tx->send - eni_dev->ram), |
2161 | tx->send-eni_dev->ram+tx->words*4-1,tx->words*4, | 2161 | tx->send-eni_dev->ram+tx->words*4-1,tx->words*4, |
@@ -2181,7 +2181,7 @@ static int eni_proc_read(struct atm_dev *dev,loff_t *pos,char *page) | |||
2181 | if (--left) continue; | 2181 | if (--left) continue; |
2182 | length = sprintf(page,"vcc %4d: ",vcc->vci); | 2182 | length = sprintf(page,"vcc %4d: ",vcc->vci); |
2183 | if (eni_vcc->rx) { | 2183 | if (eni_vcc->rx) { |
2184 | length += sprintf(page+length,"0x%ld-0x%ld " | 2184 | length += sprintf(page+length, "0x%lx-0x%lx " |
2185 | "(%6ld bytes)", | 2185 | "(%6ld bytes)", |
2186 | (unsigned long) (eni_vcc->recv - eni_dev->ram), | 2186 | (unsigned long) (eni_vcc->recv - eni_dev->ram), |
2187 | eni_vcc->recv-eni_dev->ram+eni_vcc->words*4-1, | 2187 | eni_vcc->recv-eni_dev->ram+eni_vcc->words*4-1, |