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 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html