Bluetooth: shell: Print error code in hex

Print the error codes in hex so that it is easier to lookup, error
codes are usually given as hex.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2020-02-02 00:42:24 +01:00 committed by Johan Hedberg
commit 11970b89f9

View file

@ -149,7 +149,7 @@ static void connected(struct bt_conn *conn, u8_t err)
conn_addr_str(conn, addr, sizeof(addr));
if (err) {
shell_error(ctx_shell, "Failed to connect to %s (%u)", addr,
shell_error(ctx_shell, "Failed to connect to %s (0x%02x)", addr,
err);
goto done;
}