summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJaakko Hannikainen <jaakko.hannikainen@intel.com>2016-07-25 14:29:46 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2016-07-25 14:24:39 +0000
commite6a34f8175104a2264be247f4eec765d34b5ca54 (patch)
tree9ebcd49b6537598bcc41a77f1f8991e16772a875 /net
parentea5449dbcce8d0e68ee3b858e4f19ae1a0ad5e5b (diff)
net: buf: Fix compiling with debug options
The small typo in the debug printed variable prevents compiling when using debug printing in the netbuf code. Change-Id: I6cafa82e7f5629e9021d7ad1a2130f2945b4f661 Signed-off-by: Jaakko Hannikainen <jaakko.hannikainen@intel.com>
Diffstat (limited to 'net')
-rw-r--r--net/buf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/buf.c b/net/buf.c
index 0614c36ea..1e0409651 100644
--- a/net/buf.c
+++ b/net/buf.c
@@ -209,7 +209,7 @@ uint8_t *net_buf_simple_add_u8(struct net_buf_simple *buf, uint8_t val)
{
uint8_t *u8;
- NET_BUF_DBG("buf %p val 0x%02x\n", buf, value);
+ NET_BUF_DBG("buf %p val 0x%02x\n", buf, val);
u8 = net_buf_simple_add(buf, 1);
*u8 = val;