From 241e54889689bd86a3d9f11f64512a964f0de8cd Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Thu, 31 Aug 2023 17:20:09 +0800 Subject: [PATCH] Make LOG level octal --- helper.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/helper.h b/helper.h index 68f968b..fc1c6b9 100644 --- a/helper.h +++ b/helper.h @@ -2,7 +2,7 @@ * File : helper.h * Authors : Aoran Zeng * Created on : <2023-08-28> -* Last modified : <2023-08-30> +* Last modified : <2023-08-31> * * helper: * @@ -51,10 +51,10 @@ xy_malloc0 (size_t size) } -#define XY_INFO 1 -#define XY_SUCCESS 1<<1 -#define XY_WARN 1<<2 -#define XY_ERROR 1<<3 +#define XY_INFO 00001 +#define XY_SUCCESS 00001<<1 +#define XY_WARN 00001<<2 +#define XY_ERROR 00001<<3 static void xy_log (int level, const char* str)