From 941c58b95d76a1abbe55d7ada2ce543dc3985eca Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Fri, 28 Oct 2011 00:04:30 +0200 Subject: [PATCH] cec: make CEC_LOG levels powers of 2 --- include/cectypes.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/include/cectypes.h b/include/cectypes.h index 4c029e8..4396755 100644 --- a/include/cectypes.h +++ b/include/cectypes.h @@ -529,11 +529,12 @@ typedef enum cec_opcode typedef enum cec_log_level { - CEC_LOG_DEBUG = 0, - CEC_LOG_TRAFFIC, - CEC_LOG_NOTICE, - CEC_LOG_WARNING, - CEC_LOG_ERROR + CEC_LOG_ERROR = 1, + CEC_LOG_WARNING = 2, + CEC_LOG_NOTICE = 4, + CEC_LOG_TRAFFIC = 8, + CEC_LOG_DEBUG = 16, + CEC_LOG_ALL = 31 } cec_log_level; typedef struct cec_log_message @@ -706,7 +707,7 @@ typedef enum cec_vendor_id #define MSGEND 0xFE #define MSGESC 0xFD #define ESCOFFSET 3 -#define CEC_MIN_VERSION 6 +#define CEC_MIN_VERSION 8 #define CEC_LIB_VERSION 8 #define CEC_BUTTON_TIMEOUT 500 -- 2.34.1