--- libelwix/inc/elwix.h 2024/01/22 15:24:28 1.22 +++ libelwix/inc/elwix.h 2025/04/02 07:42:55 1.25.12.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: elwix.h,v 1.22 2024/01/22 15:24:28 misho Exp $ +* $Id: elwix.h,v 1.25.12.1 2025/04/02 07:42:55 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2024 +Copyright 2004 - 2025 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -47,6 +47,7 @@ SUCH DAMAGE. #define __ELWIX_H +#include #include #include #include @@ -289,6 +290,8 @@ extern int elwix_Debug; #define ELWIX_DEBUG_NET 0x80 #define ELWIX_DEBUG_ANY 0xFFFFFFFF +#define EDBG(x) (elwix_Debug & (x)) +#define EDBGS(x) if (EDBG(x)) #define ETRACE() if (elwix_Debug & ELWIX_DEBUG_TRACE) \ syslog(LOG_DEBUG, "I'm in %s(%d)\n", __func__, __LINE__) #define EDEBUG(x, fmt, ...) do { assert((fmt)); \ @@ -304,7 +307,7 @@ extern int elwix_Debug; #define ELOGGER(x, fmt, ...) do { assert((fmt)); \ char __str[BUFSIZ] = { [0 ... BUFSIZ - 1] = 0 }; \ snprintf(__str, sizeof __str, (fmt), ##__VA_ARGS__); \ - syslog((x), "Logger:%s(%d): %s\n", \ + syslog((x), "Log:%s(%d): %s\n", \ __func__, __LINE__, __str); \ } while (0)