create a specific function for display

In order to have the code more clear, let's create a function for the
display like what we did with the dump function.

Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr>
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
1 file changed