Buffer name inconsistently used a cstring/vec (VPP-901) 30/7430/1
authorChris Luke <chrisy@flirble.org>
Wed, 5 Jul 2017 16:57:10 +0000 (12:57 -0400)
committerChris Luke <chris_luke@comcast.com>
Wed, 5 Jul 2017 17:23:41 +0000 (17:23 +0000)
commit7447d07719bb4c9c58501d78aa4a453d6a044863
treeb2aa30a1c865b228438a4c0f79870a75d27f92a2
parent99a0e60eb6f6acd7eabd5a4cb7ded1e0419ccd54
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