[PATCH] mgmt-tester: Use proper type specifier for printing size_t

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux