drivers: atm: fix %d confusingly prefixed with 0x in format strings
authorHans Wennborg <hans@hanshq.net>
Mon, 4 Aug 2014 00:18:20 +0000 (17:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Aug 2014 20:04:32 +0000 (13:04 -0700)
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>
drivers/atm/eni.c

index b1955ba40d639ae9fc1eefa2afba77a5db7da07d..d65975aba4ecfdd3297d0fc1ad8151f6560b1fda 100644 (file)
@@ -2155,7 +2155,7 @@ static int eni_proc_read(struct atm_dev *dev,loff_t *pos,char *page)
 
                if (!tx->send) continue;
                if (!--left) {
-                       return sprintf(page,"tx[%d]:    0x%ld-0x%ld "
+                       return sprintf(page, "tx[%d]:    0x%lx-0x%lx "
                            "(%6ld bytes), rsv %d cps, shp %d cps%s\n",i,
                            (unsigned long) (tx->send - eni_dev->ram),
                            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)
                        if (--left) continue;
                        length = sprintf(page,"vcc %4d: ",vcc->vci);
                        if (eni_vcc->rx) {
-                               length += sprintf(page+length,"0x%ld-0x%ld "
+                               length += sprintf(page+length, "0x%lx-0x%lx "
                                    "(%6ld bytes)",
                                    (unsigned long) (eni_vcc->recv - eni_dev->ram),
                                    eni_vcc->recv-eni_dev->ram+eni_vcc->words*4-1,