From 26495f6734fe0fc7d3499c168a38eca121e58467 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 19 Dec 2011 14:35:03 +0200 Subject: [PATCH] Fix size_t format specifiers --- mgmt/main.c | 2 +- plugins/mgmtops.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mgmt/main.c b/mgmt/main.c index 3343d2158..20d7bf872 100644 --- a/mgmt/main.c +++ b/mgmt/main.c @@ -505,7 +505,7 @@ static void confirm_name_rsp(int mgmt_sk, uint16_t op, uint16_t id, if (len != sizeof(*rp)) { fprintf(stderr, - "hci%u confirm_name rsp length %u instead of %u\n", + "hci%u confirm_name rsp length %u instead of %zu\n", id, len, sizeof(*rp)); return; } diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c index 538386469..6d5862e6f 100644 --- a/plugins/mgmtops.c +++ b/plugins/mgmtops.c @@ -1245,7 +1245,7 @@ static void mgmt_device_found(int sk, uint16_t index, void *buf, size_t len) uint32_t cls; if (len != sizeof(*ev)) { - error("mgmt_device_found length %u instead of expected %u", + error("mgmt_device_found length %zu instead of expected %zu", len, sizeof(*ev)); return; } -- 2.47.3