samples: fix displaying selected tools

Do display selected tools / debug facilities when displaying a sample.
This commit is contained in:
Yann E. MORIN" 2009-09-07 18:55:11 +02:00
parent 0d434aabb6
commit 565378d2b9

View File

@ -57,13 +57,13 @@ dump_single_sample() {
printf ")\n"
printf " %-*s : %s\n" ${t_width} "C library" "${CT_LIBC}${CT_LIBC_VERSION:+-}${CT_LIBC_VERSION}"
printf " %-*s :" ${t_width} "Tools"
[ "${CT_LIBELF}" ] && printf " libelf-${CT_LIBELF_VERSION}"
[ "${CT_SSTRIP}" ] && printf " sstrip"
[ "${CT_DMALLOC}" ] && printf " dmalloc-${CT_DMALLOC_VERSION}"
[ "${CT_DUMA}" ] && printf " duma-${CT_DUMA_VERSION}"
[ "${CT_GDB}" ] && printf " gdb-${CT_GDB_VERSION}"
[ "${CT_LTRACE}" ] && printf " ltrace-${CT_LTRACE_VERSION}"
[ "${CT_STRACE}" ] && printf " strace-${CT_STRACE_VERSION}"
[ "${CT_TOOL_libelf}" ] && printf " libelf-${CT_LIBELF_VERSION}"
[ "${CT_TOOL_sstrip}" ] && printf " sstrip"
[ "${CT_DEBUG_dmalloc}" ] && printf " dmalloc-${CT_DMALLOC_VERSION}"
[ "${CT_DEBUG_duma}" ] && printf " duma-${CT_DUMA_VERSION}"
[ "${CT_DEBUG_gdb}" ] && printf " gdb-${CT_GDB_VERSION}"
[ "${CT_DEBUG_ltrace}" ] && printf " ltrace-${CT_LTRACE_VERSION}"
[ "${CT_DEBUG_strace}" ] && printf " strace-${CT_STRACE_VERSION}"
printf "\n"
fi
else