LOG_MASK
#define LOG_MASK (LOG_SIZE - 1)
#define LOG_MASK(pri) (1 << (pri)) /* mask for one priority */