Skip to content

Commit

Permalink
radio-tune-menu: Simplify printf operation. (#315)
Browse files Browse the repository at this point in the history
* Resolve compiler error about missing format string
* Replace snprintf + printf with just printf.

Resolves: #314
  • Loading branch information
InterLinked1 authored May 3, 2024
1 parent 21b31b4 commit 5ac3996
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions utils/radio-tune-menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -767,12 +767,11 @@ static void menu_swapusb(void)
{
char str[100];
int i;

printf("\nPlease select from the following methods for %s:\n", value_name);

for (i = 0; i < max_items; i++) {
snprintf(str, sizeof(str) - 1, "%d) %s %s\n", i + 1, items[i], selection == i ? "- Current" : "");
printf(str);
printf("%d) %s %s\n", i + 1, items[i], selection == i ? "- Current" : "");
}

printf("Select new %s or C/R for current): ", value_name);
Expand Down

0 comments on commit 5ac3996

Please sign in to comment.