need LOG_GENERAL before VERBOSE (nw)

This commit is contained in:
Vas Crabb 2017-01-21 10:20:34 +11:00
parent 3d60ede46b
commit 31ae79c107
3 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,7 @@
* Configurable logging
****************************************************************************/
#define LOG_GENERAL (1U << 0)
#define LOG_INT (1U << 1)
#define LOG_IOPORT (1U << 2)
#define LOG_TIMER (1U << 3)

View File

@ -78,6 +78,7 @@ DONE (x) (p=partly) NMOS CMOS ESCC EMSCC
// CONFIGURABLE LOGGING
//**************************************************************************
#define LOG_GENERAL (1U << 0)
#define LOG_SETUP (1U << 1)
#define LOG_PRINTF (1U << 2)
#define LOG_READ (1U << 3)

View File

@ -13,7 +13,9 @@
#define LOG_OUTPUT_FUNC logerror
#endif
#ifndef LOG_GENERAL
#define LOG_GENERAL (1U << 0)
#endif
#define LOGMASKED(mask, ...) do { if (VERBOSE & (mask)) (LOG_OUTPUT_FUNC)(__VA_ARGS__); } while (false)