netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: chas williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
To: Hans Wennborg <hans@hanshq.net>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 02/19] drivers: atm: fix %d confusingly prefixed with 0x in format strings
Date: Mon, 4 Aug 2014 07:16:38 -0400	[thread overview]
Message-ID: <20140804071638.32fd85ed@thirdoffive.cmf.nrl.navy.mil> (raw)
In-Reply-To: <1407111500-14547-1-git-send-email-hans@hanshq.net>

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,

  reply	other threads:[~2014-08-04 11:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-04  0:18 [PATCH 02/19] drivers: atm: fix %d confusingly prefixed with 0x in format strings Hans Wennborg
2014-08-04 11:16 ` chas williams - CONTRACTOR [this message]
2014-08-05 20:05 ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140804071638.32fd85ed@thirdoffive.cmf.nrl.navy.mil \
    --to=chas@cmf.nrl.navy.mil \
    --cc=hans@hanshq.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).