kopia lustrzana https://github.com/Hamlib/Hamlib
First phase of improving debug messages
rodzic
4b9ea6b1d4
commit
c5c60f0f43
Plik diff jest za duży
Load Diff
|
@ -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
|
||||
|
||||
/** @} */
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Plik diff jest za duży
Load Diff
Ładowanie…
Reference in New Issue