linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] input: Fix compilation errors on 32 bit machine
@ 2014-05-14 19:49 Szymon Janc
  2014-05-14 19:49 ` [PATCH 2/3] hog: Fix compilation error " Szymon Janc
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Szymon Janc @ 2014-05-14 19:49 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Szymon Janc

Fix following with GCC version 4.8.2 (Debian 4.8.2-21):

  CC       profiles/input/bluetoothd-device.o
profiles/input/device.c: In function ‘uhid_send_feature_answer’:
profiles/input/device.c:232:8: error: format ‘%lu’ expects argument
  of type ‘long unsigned int’, but argument 3 has type ‘unsigned int’
   [-Werror=format=]
        len, sizeof(ev));
        ^
profiles/input/device.c: In function ‘uhid_send_input_report’:
profiles/input/device.c:274:8: error: format ‘%lu’ expects argument of
   type ‘long unsigned int’, but argument 3 has type ‘unsigned int’
   [-Werror=format=]
        len, sizeof(ev));
        ^
---
 profiles/input/device.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/profiles/input/device.c b/profiles/input/device.c
index 3e89e2d..52222ea 100644
--- a/profiles/input/device.c
+++ b/profiles/input/device.c
@@ -228,7 +228,7 @@ static bool uhid_send_feature_answer(struct input_device *idev,
 
 	/* uHID kernel driver does not handle partial writes */
 	if ((size_t) len < sizeof(ev)) {
-		error("uHID dev write error: partial write (%zd of %lu bytes)",
+		error("uHID dev write error: partial write (%zd of %zu bytes)",
 							len, sizeof(ev));
 		return false;
 	}
@@ -270,7 +270,7 @@ static bool uhid_send_input_report(struct input_device *idev,
 
 	/* uHID kernel driver does not handle partial writes */
 	if ((size_t) len < sizeof(ev)) {
-		error("uHID dev write error: partial write (%zd of %lu bytes)",
+		error("uHID dev write error: partial write (%zd of %zu bytes)",
 							len, sizeof(ev));
 		return false;
 	}
-- 
2.0.0.rc2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-05-14 20:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-14 19:49 [PATCH 1/3] input: Fix compilation errors on 32 bit machine Szymon Janc
2014-05-14 19:49 ` [PATCH 2/3] hog: Fix compilation error " Szymon Janc
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

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).