linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: Szymon Janc <szymon.janc@tieto.com>
Cc: linux-bluetooth@vger.kernel.org, kanak.gupta@stericsson.com
Subject: Re: [PATCH] Fix compilation error in mgmt/main.c
Date: Wed, 18 Jan 2012 14:29:40 +0200	[thread overview]
Message-ID: <20120118122940.GA11594@x220> (raw)
In-Reply-To: <1326889431-24546-1-git-send-email-szymon.janc@tieto.com>

Hi Szymon,

On Wed, Jan 18, 2012, Szymon Janc wrote:
> Use %u instead of %zu for printing len which is of type uint16_t.
> 
> CC     mgmt/main.o
> cc1: warnings being treated as errors
> mgmt/main.c: In function ‘mgmt_device_found’:
> mgmt/main.c:561: error: format ‘%zu’ expects type ‘size_t’, but argument 4 has type ‘int’
> ---
>  mgmt/main.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Thanks, but you were a bit too slow: I already pushed the same fix
myself (I didn't initially catch this error in my 32 bit qemu vm but
when compiling outside in a 64 bit env I saw it).

Johan

      reply	other threads:[~2012-01-18 12:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-18 12:23 [PATCH] Fix compilation error in mgmt/main.c Szymon Janc
2012-01-18 12:29 ` Johan Hedberg [this message]

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=20120118122940.GA11594@x220 \
    --to=johan.hedberg@gmail.com \
    --cc=kanak.gupta@stericsson.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=szymon.janc@tieto.com \
    /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).