diff options
author | Szymon Janc <ext.szymon.janc@tieto.com> | 2016-10-26 17:12:33 +0200 |
---|---|---|
committer | Anas Nashif <nashif@linux.intel.com> | 2016-10-27 08:08:27 +0000 |
commit | ccadd4b00637062046acd10fb872421ecd7cd3ab (patch) | |
tree | b0f45dc30fe437dcecda5cef1e0d22ab573fc537 /include | |
parent | 91d7bdd54fc34e18df887bed3c71945dd6c91646 (diff) |
net: Use proper format for printing size_t
size_t should be printed with %zu. This also fix build error on
unified kernel due to ZEP-1133.
Change-Id: I9c5fc7f7de365e47bd0973913b94baa80f7907e3
Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/ip_buf.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/net/ip_buf.h b/include/net/ip_buf.h index 6bbbeb1d9..88ebecb52 100644 --- a/include/net/ip_buf.h +++ b/include/net/ip_buf.h @@ -385,10 +385,10 @@ static inline void net_analyze_stack(const char *name, size -= stack_offset; pcnt = ((size - unused) * 100) / size; - printk("net (%p): %s stack real size %u " - "unused %u usage %u/%u (%u %%)\n", - sys_thread_self_get(), name, - size + stack_offset, unused, size - unused, size, pcnt); + printk("net (%p): %s stack real size %zu " + "unused %u usage %zu/%zu (%u %%)\n", + sys_thread_self_get(), name, size + stack_offset, + unused, size - unused, size, pcnt); } #else #define net_analyze_stack(...) |