diff mbox

[02/19] drivers: atm: fix %d confusingly prefixed with 0x in format strings

Message ID 1407111500-14547-1-git-send-email-hans@hanshq.net
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Hans Wennborg Aug. 4, 2014, 12:18 a.m. UTC
Signed-off-by: Hans Wennborg <hans@hanshq.net>
---
 drivers/atm/eni.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

chas williams - CONTRACTOR Aug. 4, 2014, 11:16 a.m. UTC | #1
Acked-by: Chas Williams <chas@cmf.nrl.navy.mil>

On Sun,  3 Aug 2014 17:18:20 -0700
Hans Wennborg <hans@hanshq.net> wrote:

> Signed-off-by: Hans Wennborg <hans@hanshq.net>
> ---
>  drivers/atm/eni.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/atm/eni.c b/drivers/atm/eni.c
> index b1955ba..d65975a 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)
>  
>  		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,

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller Aug. 5, 2014, 8:05 p.m. UTC | #2
From: Hans Wennborg <hans@hanshq.net>
Date: Sun,  3 Aug 2014 17:18:20 -0700

> Signed-off-by: Hans Wennborg <hans@hanshq.net>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/atm/eni.c b/drivers/atm/eni.c
index b1955ba..d65975a 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)
 
 		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,