From 1b52a009ef59424e53819bbafd2f2f0cda95bd99 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Sat, 28 Aug 2021 09:10:35 -0500 Subject: [PATCH] Move Startup debug line after set_debug_level --- tests/rigctl.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/rigctl.c b/tests/rigctl.c index 5286778c0..6e027faf8 100644 --- a/tests/rigctl.c +++ b/tests/rigctl.c @@ -155,12 +155,6 @@ int main(int argc, char *argv[]) char resp_sep = '\n'; int i; - rig_debug(RIG_DEBUG_VERBOSE, "%s(%d) Startup:", __FILE__, __LINE__); - - for (i = 0; i < argc; ++i) { rig_debug(RIG_DEBUG_VERBOSE, " %s", argv[i]); } - - rig_debug(RIG_DEBUG_VERBOSE, "%s", "\n"); - while (1) { int c; @@ -446,6 +440,13 @@ int main(int argc, char *argv[]) rig_set_debug(verbose); + rig_debug(RIG_DEBUG_VERBOSE, "%s(%d) Startup:", __FILE__, __LINE__); + + for (i = 0; i < argc; ++i) { rig_debug(RIG_DEBUG_VERBOSE, " %s", argv[i]); } + + rig_debug(RIG_DEBUG_VERBOSE, "%s", "\n"); + + rig_debug(RIG_DEBUG_VERBOSE, "rigctl %s\n", hamlib_version2); rig_debug(RIG_DEBUG_VERBOSE, "%s", "Report bugs to \n\n");