From 5ac3996f4f9dfaed198fab24b2437193242bea85 Mon Sep 17 00:00:00 2001 From: InterLinked1 <24227567+InterLinked1@users.noreply.github.com> Date: Fri, 3 May 2024 16:04:26 -0400 Subject: [PATCH] radio-tune-menu: Simplify printf operation. (#315) * Resolve compiler error about missing format string * Replace snprintf + printf with just printf. Resolves: #314 --- utils/radio-tune-menu.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/utils/radio-tune-menu.c b/utils/radio-tune-menu.c index 6393ab2..22d6277 100644 --- a/utils/radio-tune-menu.c +++ b/utils/radio-tune-menu.c @@ -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);