Shave the debug yak

PUBLISHED_FROM=402d26b6a2797bfe9fb70e48cbde97f3960ef5d4
This commit is contained in:
Deomid Ryabkov authored and Sergey Lyubka committed 2015-11-20 12:07:51 +00:00
1 parent d68fab9ee5
commit 79e8d77ea0
2 files changed
+50 -9

No files matched your search

+14 -1
View File
@@ -317,10 +317,19 @@ int cs_base64_decode(const unsigned char *s, int len, char *dst) {
#line 1 "src/../../common/cs_dbg.c"
/**/
#endif
/* Amalgamated: #include "cs_dbg.h" */
#include <stdarg.h>
#include <stdio.h>
void cs_dbg_printf(const char *fmt, ...) {
enum cs_log_level s_cs_log_level =
#ifdef CS_ENABLE_DEBUG
LL_DEBUG;
#else
LL_ERROR;
#endif
void cs_log_printf(const char *fmt, ...) {
va_list ap;
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
@@ -328,6 +337,10 @@ void cs_dbg_printf(const char *fmt, ...) {
fputc('\n', stderr);
fflush(stderr);
}
void cs_log_set_level(enum cs_log_level level) {
s_cs_log_level = level;
}
#ifdef NS_MODULE_LINES
#line 1 "src/../../common/dirent.c"
/**/