diff --git a/src/amplifier.c b/src/amplifier.c index 1f66deda8..5fa23e93c 100644 --- a/src/amplifier.c +++ b/src/amplifier.c @@ -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; }