kopia lustrzana https://github.com/Hamlib/Hamlib
Improve conf.c debug output
rodzic
c1130737fa
commit
4afe039147
16
src/conf.c
16
src/conf.c
|
@ -1372,10 +1372,18 @@ const struct confparams *HAMLIB_API rig_confparam_lookup(RIG *rig,
|
|||
const struct confparams *cfp;
|
||||
hamlib_token_t token;
|
||||
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called for %s\n", __func__, name);
|
||||
|
||||
if (!rig || !rig->caps)
|
||||
{
|
||||
if (rig)
|
||||
{
|
||||
rig_debug(RIG_DEBUG_ERR, "%s: rig->caps is NULL\n", __func__);
|
||||
}
|
||||
else
|
||||
{
|
||||
rig_debug(RIG_DEBUG_ERR, "%s: rig is NULL\n", __func__);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -1386,6 +1394,7 @@ const struct confparams *HAMLIB_API rig_confparam_lookup(RIG *rig,
|
|||
{
|
||||
if (!strcmp(cfp->name, name) || token == cfp->token)
|
||||
{
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called for %s\n", __func__, cfp->name);
|
||||
return cfp;
|
||||
}
|
||||
}
|
||||
|
@ -1394,6 +1403,7 @@ const struct confparams *HAMLIB_API rig_confparam_lookup(RIG *rig,
|
|||
{
|
||||
if (!strcmp(cfp->name, name) || token == cfp->token)
|
||||
{
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called for %s\n", __func__, cfp->name);
|
||||
return cfp;
|
||||
}
|
||||
}
|
||||
|
@ -1404,11 +1414,15 @@ const struct confparams *HAMLIB_API rig_confparam_lookup(RIG *rig,
|
|||
{
|
||||
if (!strcmp(cfp->name, name) || token == cfp->token)
|
||||
{
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called for %s\n", __func__, cfp->name);
|
||||
return cfp;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called for %s and not found\n", __func__,
|
||||
name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue