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:
parent
bcad8cf1c6
commit
11970b89f9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue