First phase of improving debug messages

pull/518/head
Michael Black W9MDB 2021-01-17 07:25:28 -06:00
rodzic 4b9ea6b1d4
commit c5c60f0f43
4 zmienionych plików z 884 dodań i 855 usunięć

Plik diff jest za duży Load Diff

Wyświetl plik

@ -2132,6 +2132,13 @@ const char *rig_get_caps_cptr(rig_model_t rig_model,
}
}
void errmsg(int err, char *s, const char *func, const char *file, int line)
{
rig_debug(RIG_DEBUG_ERR, "%s(%s:%d): %s: %s\b", __func__, file, line, s,
rigerror(err));
}
//! @endcond
/** @} */

Wyświetl plik

@ -138,7 +138,10 @@ extern HAMLIB_EXPORT(int) parse_hoststr(char *host, char hoststr[256], char port
# endif
#endif
void errmsg(int err, char *s, const char *func, const char *file, int line);
#define ERRMSG(err, s) errmsg(err, s, __func__, __FILE__, __LINE__)
#define ENTERFUNC rig_debug(RIG_DEBUG_VERBOSE, "%s(%d):%s entered\n", __FILE__, __LINE__, __func__)
#define RETURNFUNC(rc) rig_debug(RIG_DEBUG_VERBOSE, "%s(%d):%s return\n", __FILE__, __LINE__, __func__);return rc
__END_DECLS

871
src/rig.c 100644 → 100755

Plik diff jest za duży Load Diff