Use log levels from syslog.h when available.

Thanks to Dag Björklund for pointing this out.
This commit is contained in:
Olaf Bergmann committed 2013-12-30 01:15:11 +01:00
1 parent 2d57017540
commit 3f69cd1e9b
9 files changed
+21 -13

No files matched your search

+2 -2
View File
@@ -35,7 +35,7 @@
#include "net/uip-debug.h"
#endif
static coap_log_t maxlog = LOG_WARN; /* default maximum log level */
static coap_log_t maxlog = LOG_WARNING; /* default maximum log level */
coap_log_t
coap_get_log_level() {
@@ -49,7 +49,7 @@ coap_set_log_level(coap_log_t level) {
/* this array has the same order as the type log_t */
static char *loglevels[] = {
"EMRG", "ALRT", "CRIT", "WARN", "NOTE", "INFO", "DEBG"
"EMRG", "ALRT", "CRIT", "ERR", "WARN", "NOTE", "INFO", "DEBG"
};
#ifdef HAVE_TIME_H