1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-11-03 04:17:20 -05:00

Fix: Corrected IGLOO_LOGLEVEL_* -> igloo_LOGLEVEL_*

This commit is contained in:
Philipp Schafft 2019-07-14 10:31:09 +00:00
parent 6cee49d16f
commit fd668fd935
2 changed files with 12 additions and 12 deletions

View File

@ -47,17 +47,17 @@ igloo_RO_FORWARD_TYPE(igloo_logmsg_t);
/* Log level for log messages */
typedef enum {
/* Used to report errors with function calls. */
IGLOO_LOGLEVEL__ERROR = -1,
igloo_LOGLEVEL__ERROR = -1,
/* Unset log level. */
IGLOO_LOGLEVEL__NONE = 0,
igloo_LOGLEVEL__NONE = 0,
/* Logmsg reports an error. */
IGLOO_LOGLEVEL_ERROR,
igloo_LOGLEVEL_ERROR,
/* Logmsg reports a warning. */
IGLOO_LOGLEVEL_WARN,
igloo_LOGLEVEL_WARN,
/* Logmsg is of information level. */
IGLOO_LOGLEVEL_INFO,
igloo_LOGLEVEL_INFO,
/* Logmsg is for debugging only. */
IGLOO_LOGLEVEL_DEBUG
igloo_LOGLEVEL_DEBUG
} igloo_loglevel_t;
/* Type for logmsg options.

View File

@ -175,12 +175,12 @@ int igloo_logmsg_get_extra(igloo_logmsg_t *msg, igloo_logmsg_opt_t *options, igl
static const char * __level2str(igloo_loglevel_t level)
{
switch (level) {
case IGLOO_LOGLEVEL__ERROR: return "<<<ERROR>>>"; break;
case IGLOO_LOGLEVEL__NONE: return "NONE"; break;
case IGLOO_LOGLEVEL_ERROR: return "EROR"; break;
case IGLOO_LOGLEVEL_WARN: return "WARN"; break;
case IGLOO_LOGLEVEL_INFO: return "INFO"; break;
case IGLOO_LOGLEVEL_DEBUG: return "DBUG"; break;
case igloo_LOGLEVEL__ERROR: return "<<<ERROR>>>"; break;
case igloo_LOGLEVEL__NONE: return "NONE"; break;
case igloo_LOGLEVEL_ERROR: return "EROR"; break;
case igloo_LOGLEVEL_WARN: return "WARN"; break;
case igloo_LOGLEVEL_INFO: return "INFO"; break;
case igloo_LOGLEVEL_DEBUG: return "DBUG"; break;
}
return "<<<unknown log level>>>";