From: Szymon Janc <szymon.janc@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: Szymon Janc <szymon.janc@gmail.com>
Subject: [PATCH 2/3] hog: Fix compilation error on 32 bit machine
Date: Wed, 14 May 2014 21:49:08 +0200 [thread overview]
Message-ID: <1400096949-18895-2-git-send-email-szymon.janc@gmail.com> (raw)
In-Reply-To: <1400096949-18895-1-git-send-email-szymon.janc@gmail.com>
Fix following with GCC version 4.8.2 (Debian 4.8.2-21):
CC profiles/input/bluetoothd-hog.o
profiles/input/hog.c: In function ‘report_value_cb’:
profiles/input/hog.c:149:8: error: format ‘%lu’ expects argument of
type ‘long unsigned int’, but argument 3 has type ‘unsigned int’
[-Werror=format=]
status, sizeof(ev));
^
---
profiles/input/hog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/profiles/input/hog.c b/profiles/input/hog.c
index c196f65..e82e827 100644
--- a/profiles/input/hog.c
+++ b/profiles/input/hog.c
@@ -145,7 +145,7 @@ static void report_value_cb(const guint8 *pdu, guint16 len, gpointer user_data)
/* uHID kernel driver does not handle partial writes */
if ((size_t) status < sizeof(ev)) {
- error("uHID dev write error: partial write (%zd of %lu bytes)",
+ error("uHID dev write error: partial write (%zd of %zu bytes)",
status, sizeof(ev));
return;
}
--
2.0.0.rc2
next prev parent reply other threads:[~2014-05-14 19:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-14 19:49 [PATCH 1/3] input: Fix compilation errors on 32 bit machine Szymon Janc
2014-05-14 19:49 ` Szymon Janc [this message]
2014-05-14 19:49 ` [PATCH 3/3] tools: Fix hex2hcd compilation error Szymon Janc
2014-05-14 20:15 ` [PATCH 1/3] input: Fix compilation errors on 32 bit machine Johan Hedberg
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=1400096949-18895-2-git-send-email-szymon.janc@gmail.com \
--to=szymon.janc@gmail.com \
--cc=linux-bluetooth@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).