From 632746cf91c50cdbefce5ba8fbe7e502feef9568 Mon Sep 17 00:00:00 2001 From: Daniele Forsi IU5HKX Date: Sun, 17 Aug 2025 17:13:59 +0200 Subject: [PATCH] Use rig_debug() instead of sending error messages to stdout --- tests/ampctl_parse.c | 2 +- tests/rigctl_parse.c | 2 +- tests/rotctl_parse.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ampctl_parse.c b/tests/ampctl_parse.c index e47b6c1ff..9e443b812 100644 --- a/tests/ampctl_parse.c +++ b/tests/ampctl_parse.c @@ -1584,7 +1584,7 @@ void list_models() if (status != RIG_OK) { - printf("amp_list_foreach: error = %s \n", rigerror(status)); + rig_debug(RIG_DEBUG_ERR, "amp_list_foreach: error = %s \n", rigerror(status)); exit(2); } diff --git a/tests/rigctl_parse.c b/tests/rigctl_parse.c index ad42193ec..f5a9c1fc8 100644 --- a/tests/rigctl_parse.c +++ b/tests/rigctl_parse.c @@ -2154,7 +2154,7 @@ void list_models() if (status != RIG_OK) { - printf("rig_list_foreach: error = %s \n", rigerror(status)); + rig_debug(RIG_DEBUG_ERR, "rig_list_foreach: error = %s \n", rigerror(status)); exit(2); } diff --git a/tests/rotctl_parse.c b/tests/rotctl_parse.c index bfc3488b7..e7fed60e5 100644 --- a/tests/rotctl_parse.c +++ b/tests/rotctl_parse.c @@ -1667,7 +1667,7 @@ void list_models() if (status != RIG_OK) { - printf("rot_list_foreach: error = %s \n", rigerror(status)); + rig_debug(RIG_DEBUG_ERR, "rot_list_foreach: error = %s \n", rigerror(status)); exit(2); }