From f53388dbb97ddf2ae638c606227d13aeef51c1fb Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 7 Dec 2016 18:47:57 +0200 Subject: [PATCH] Bluetooth: L2CAP: Fix format specifier for hex uint16_t Instead of %4.4x we need to use %04x which printk supports. Change-Id: I0564be5531bb266b328f77231f5d00f43eabe1ed Signed-off-by: Johan Hedberg --- subsys/bluetooth/host/l2cap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/host/l2cap.c b/subsys/bluetooth/host/l2cap.c index 4c2c3c6f685..92fde0c474d 100644 --- a/subsys/bluetooth/host/l2cap.c +++ b/subsys/bluetooth/host/l2cap.c @@ -583,7 +583,7 @@ static void le_conn_param_update_req(struct bt_l2cap *l2cap, uint8_t ident, timeout = sys_le16_to_cpu(req->timeout); param = BT_LE_CONN_PARAM(min, max, latency, timeout); - BT_DBG("min 0x%4.4x max 0x%4.4x latency: 0x%4.4x timeout: 0x%4.4x", + BT_DBG("min 0x%04x max 0x%04x latency: 0x%04x timeout: 0x%04x", min, max, latency, timeout); buf = l2cap_create_le_sig_pdu(BT_L2CAP_CONN_PARAM_RSP, ident,