summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorSzymon Janc <ext.szymon.janc@tieto.com>2016-01-28 18:21:55 +0100
committerAnas Nashif <anas.nashif@intel.com>2016-02-05 20:25:28 -0500
commit47f0279502ca620687bd33f100077797204147eb (patch)
tree4aa8a303f2d351082a67ac0215389326585b666a /samples
parent719e8e471055e074ce99e2cd9ac4e0e79f56a3f4 (diff)
Bluetooth: samples/shell: Fix printk modifier
Use %d for printing signed integer. Change-Id: I6fbf387969e97561430ea0d2d422842c599f1457 Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
Diffstat (limited to 'samples')
-rw-r--r--samples/bluetooth/shell/src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bluetooth/shell/src/main.c b/samples/bluetooth/shell/src/main.c
index efd6134e2..79b529fe8 100644
--- a/samples/bluetooth/shell/src/main.c
+++ b/samples/bluetooth/shell/src/main.c
@@ -1420,7 +1420,7 @@ static void cmd_l2cap_send(int argc, char *argv[])
memcpy(net_buf_add(buf, len), buf_data, len);
ret = bt_l2cap_chan_send(&l2cap_chan, buf);
if (ret < 0) {
- printk("Unable to send: %u\n", -ret);
+ printk("Unable to send: %d\n", -ret);
net_buf_unref(buf);
break;
}