Bluetooth: hci_sync: Fix Opcode prints in bt_dev_dbg/err
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>
Wed, 18 Oct 2023 14:47:35 +0000 (16:47 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 23 Oct 2023 18:05:32 +0000 (11:05 -0700)
commit530886897c789cf77c9a0d4a7cc5549f0768b5f8
tree8b650bed6b67225087b05b119169903b499d65f8
parenta85fb91e3d728bdfc80833167e8162cce8bc7004
Bluetooth: hci_sync: Fix Opcode prints in bt_dev_dbg/err

Printed Opcodes may be missing leading zeros:

Bluetooth: hci0: Opcode 0x c03 failed: -110

Fix this by always printing leading zeros:

Bluetooth: hci0: Opcode 0x0c03 failed: -110

Fixes: d0b137062b2d ("Bluetooth: hci_sync: Rework init stages")
Fixes: 6a98e3836fa2 ("Bluetooth: Add helper for serialized HCI command execution")
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_sync.c