Fix following error: tools/mgmt-tester.c: In function ‘verify_ltk’: tools/mgmt-tester.c:2633:19: error: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long unsigned int’ [-Werror=format=] sizeof(struct mgmt_ev_new_long_term_key)); ^ --- tools/mgmt-tester.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c index 805bcbe..177b51b 100644 --- a/tools/mgmt-tester.c +++ b/tools/mgmt-tester.c @@ -2629,7 +2629,7 @@ static bool verify_ltk(const void *param, uint16_t length) const struct mgmt_ev_new_long_term_key *ev = param; if (length != sizeof(struct mgmt_ev_new_long_term_key)) { - tester_warn("Invalid new ltk length %u != %u", length, + tester_warn("Invalid new ltk length %u != %zu", length, sizeof(struct mgmt_ev_new_long_term_key)); return false; } -- 1.9.3 -- 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