Skip to content

Commit

Permalink
Tools: Testbench: Clean up printed texts
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
singalsu committed Oct 15, 2024
1 parent e565ad9 commit 1e14666
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions tools/testbench/testbench.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ static void print_usage(char *executable)
printf("Usage: %s <options> -i <input_file> ", executable);
printf("-o <output_file1,output_file2,...>\n\n");
printf("Options for processing:\n");
printf(" -t <topology file>\n");
printf(" -a <comp1=comp1_library,comp2=comp2_library>, override default library\n\n");
printf(" -t <topology file>\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");
Expand All @@ -127,15 +126,13 @@ static void print_usage(char *executable)
printf(" -C <number of copy() iterations>\n");
printf(" -D <pipeline duration in ms>\n");
printf(" -P <number of dynamic pipeline iterations>\n");
printf(" -T <microseconds for tick, 0 for batch mode>\n");
printf(" -T <microseconds for tick, 0 for batch mode>\n\n");
printf("Options for input and output format override:\n");
printf(" -b <input_format>, S16_LE, S24_LE, or S32_LE\n");
printf(" -c <input channels>\n");
printf(" -n <output channels>\n");
printf(" -r <input rate>\n");
printf(" -R <output rate>\n\n");
printf("Environment variables\n");
printf(" SOF_HOST_CORE0=<i> - Map DSP core 0..N to host i..i+N\n");
printf("Help:\n");
printf(" -h\n\n");
printf("Example Usage:\n");
Expand Down
4 changes: 2 additions & 2 deletions tools/testbench/topology_ipc3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 1e14666

Please sign in to comment.