Use rig_debug() instead of sending error messages to stdout

This commit is contained in:
Daniele Forsi IU5HKX 2025-08-17 17:13:59 +02:00
parent ad8707c74c
commit 632746cf91
3 changed files with 3 additions and 3 deletions

View file

@ -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);
}

View file

@ -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);
}

View file

@ -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);
}