Make LOG level octal

This commit is contained in:
Aoran Zeng 2023-08-31 17:20:09 +08:00
parent f63b224b95
commit 241e548896

View File

@ -2,7 +2,7 @@
* File : helper.h * File : helper.h
* Authors : Aoran Zeng <ccmywish@qq.com> * Authors : Aoran Zeng <ccmywish@qq.com>
* Created on : <2023-08-28> * Created on : <2023-08-28>
* Last modified : <2023-08-30> * Last modified : <2023-08-31>
* *
* helper: * helper:
* *
@ -51,10 +51,10 @@ xy_malloc0 (size_t size)
} }
#define XY_INFO 1 #define XY_INFO 00001
#define XY_SUCCESS 1<<1 #define XY_SUCCESS 00001<<1
#define XY_WARN 1<<2 #define XY_WARN 00001<<2
#define XY_ERROR 1<<3 #define XY_ERROR 00001<<3
static void static void
xy_log (int level, const char* str) xy_log (int level, const char* str)