Buffer name inconsistently used a cstring/vec (VPP-901) 29/7429/1
authorChris Luke <chrisy@flirble.org>
Wed, 5 Jul 2017 16:57:10 +0000 (12:57 -0400)
committerChris Luke <chrisy@flirble.org>
Wed, 5 Jul 2017 17:15:03 +0000 (13:15 -0400)
commit6c645ed01cb9f4ac02b6420841c217b49045ce13
treed2f0ffb251ca49c8e0c5c8a0dbac67569648c29f
parent01d2b4b13ad719934e1e6999f9ed6c7c36a815ff
Buffer name inconsistently used a cstring/vec (VPP-901)

Spotted in the output of CLI command "show buffers", the name field
sometimes had trailing garbage, the hall sign of a string not being
terminated. In this case it was being inconsistently used as a cstring
or a vec.

- CLI printf needs %v to print the vec srring
- vlib_buffer_create_free_list_helper tried to use
  clib_mem_is_heap_object() to detect a vec object, wheras it should
  use clib_mem_is_vec()

Change-Id: Ib8b242a0c5a18924b8af7e8e1432784eebcf572c
Signed-off-by: Chris Luke <chrisy@flirble.org>
src/vlib/buffer.c