From 625b70e3da7b1ec163607cc7354404904eacf36e Mon Sep 17 00:00:00 2001 From: Emanuele Di Pascale Date: Fri, 9 Nov 2018 16:13:12 +0100 Subject: lib: add NB phase-specific error codes As suggested by Renato, add error codes that are specific to the various phases of a northbound callback. These can be used by the daemons when logging an error. The reasoning is that validation errors typically mean that there is an inconsistency in the configuration, a prepare error means that we are running out of resources, and abort/apply errors are bugs that need to be reported to the devs. Signed-off-by: Emanuele Di Pascale --- lib/lib_errors.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/lib_errors.h') diff --git a/lib/lib_errors.h b/lib/lib_errors.h index 5534edbd8d..86a83df46c 100644 --- a/lib/lib_errors.h +++ b/lib/lib_errors.h @@ -57,7 +57,10 @@ enum lib_log_refs { EC_LIB_NB_CB_MISSING, EC_LIB_NB_CB_INVALID_PRIO, EC_LIB_NB_CBS_VALIDATION, - EC_LIB_NB_CB_CONFIG, + EC_LIB_NB_CB_CONFIG_VALIDATE, + EC_LIB_NB_CB_CONFIG_PREPARE, + EC_LIB_NB_CB_CONFIG_ABORT, + EC_LIB_NB_CB_CONFIG_APPLY, EC_LIB_NB_CB_STATE, EC_LIB_NB_CB_RPC, EC_LIB_NB_CANDIDATE_INVALID, -- cgit v1.2.3