Add some debug to amplifier.c

pull/976/head
Mike Black W9MDB 2022-02-10 15:24:41 -06:00
rodzic 6bfa103b32
commit 9e8c68ccdf
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -451,7 +451,7 @@ int HAMLIB_API amp_close(AMP *amp)
if (!amp || !amp->caps)
{
rig_debug(RIG_DEBUG_ERR, "%s: NULL ptr? amp=%p, amp->caps=%p\n", __func__, amp,
amp_debug(RIG_DEBUG_ERR, "%s: NULL ptr? amp=%p, amp->caps=%p\n", __func__, amp,
amp->caps);
return -RIG_EINVAL;
}
@ -461,7 +461,7 @@ int HAMLIB_API amp_close(AMP *amp)
if (!rs->comm_state)
{
rig_debug(RIG_DEBUG_ERR, "%s: comm_state=0? rs=%p, rs->comm_state=%d\n",
amp_debug(RIG_DEBUG_ERR, "%s: comm_state=0? rs=%p, rs->comm_state=%d\n",
__func__, rs, rs->comm_state);
return -RIG_EINVAL;
}