From 9dfcb9f7fcf1d268b4515004b2a92e07812249b9 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Wed, 14 May 2014 21:49:08 +0200 Subject: [PATCH] hog: Fix compilation error on 32 bit machine MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 c196f656a..e82e827e1 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.47.3