The facility/priority format is an 8 bit quantity where the facility is in the upper 5 bits, and the priority is in the lower 3 bits. More...
Defines | |
| #define | GET_PRIORITY(facPri) ((facPri) & 0x7) |
| Extract priority from facPri. | |
| #define | GET_FACILITY(facPri) (((facPri) >> 3) & 0x1f) |
| Extract facility from facPri. | |
| #define | SET_FACILITY(facility) (((facility) & 0x1f) << 3) |
| Convert facility to facPri form. | |
| #define | LOG_UPTO(facPri) ((1UL << (GET_PRIORITY(facPri) + 1)) - 1) |
| Make mask for all priorities up to the given priority. | |
| #define | LOG_PRIORITY(facPri) (1UL << GET_PRIORITY(facPri)) |
| Extract priority from facPri and make 8-bit mask. | |
| #define | LOG_MASK(pri) LOG_PRIORITY(pri) |
| mask for a priority (for backward compatibility) | |
| #define | LOG_FCLTY(facPri) (1UL << GET_FACILITY(facPri)) |
| Extract facility from facPri and make 32-bit mask. | |
The facility/priority format is an 8 bit quantity where the facility is in the upper 5 bits, and the priority is in the lower 3 bits.