From 1e1466676d8d7d791db38abf33c74f403bfdc27e Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Mon, 14 Oct 2024 19:08:16 +0300 Subject: [PATCH] Tools: Testbench: Clean up printed texts The previously removed command line options are removed from help text print to avoid confusion. Also tplg_debug() makes a nicer print with "debug:" prefix. Signed-off-by: Seppo Ingalsuo --- tools/testbench/testbench.c | 7 ++----- tools/testbench/topology_ipc3.c | 4 ++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/tools/testbench/testbench.c b/tools/testbench/testbench.c index 8c4526ed61b5..5f126c91875b 100644 --- a/tools/testbench/testbench.c +++ b/tools/testbench/testbench.c @@ -117,8 +117,7 @@ static void print_usage(char *executable) printf("Usage: %s -i ", executable); printf("-o \n\n"); printf("Options for processing:\n"); - printf(" -t \n"); - printf(" -a , override default library\n\n"); + printf(" -t \n\n"); printf("Options to control test:\n"); printf(" -d Run in debug mode\n"); printf(" -q Run in quieter mode, set trace level to info\n"); @@ -127,15 +126,13 @@ static void print_usage(char *executable) printf(" -C \n"); printf(" -D \n"); printf(" -P \n"); - printf(" -T \n"); + printf(" -T \n\n"); printf("Options for input and output format override:\n"); printf(" -b , S16_LE, S24_LE, or S32_LE\n"); printf(" -c \n"); printf(" -n \n"); printf(" -r \n"); printf(" -R \n\n"); - printf("Environment variables\n"); - printf(" SOF_HOST_CORE0= - Map DSP core 0..N to host i..i+N\n"); printf("Help:\n"); printf(" -h\n\n"); printf("Example Usage:\n"); diff --git a/tools/testbench/topology_ipc3.c b/tools/testbench/topology_ipc3.c index a0082a370613..fdd1e1aeba37 100644 --- a/tools/testbench/topology_ipc3.c +++ b/tools/testbench/topology_ipc3.c @@ -692,8 +692,8 @@ int tb_parse_topology(struct testbench_prm *tb) /* read next topology header */ hdr = tplg_get_hdr(ctx); - fprintf(stdout, "type: %x, size: 0x%x count: %d index: %d\n", - hdr->type, hdr->payload_size, hdr->count, hdr->index); + tplg_debug("type: %x, size: 0x%x count: %d index: %d\n", + hdr->type, hdr->payload_size, hdr->count, hdr->index); ctx->hdr = hdr;