From 9c24e438b689af042672182f6d87f824ef435492 Mon Sep 17 00:00:00 2001 From: Anastasis Grammenos Date: Thu, 4 Oct 2018 15:46:42 +0300 Subject: More error/logs and fix failing test --- src/actions.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/actions.c') diff --git a/src/actions.c b/src/actions.c index 186bf9d..2a94427 100644 --- a/src/actions.c +++ b/src/actions.c @@ -11,11 +11,14 @@ #include #include +#define COMPONENT "action" + #include "actions.h" #include "actionhelper.h" #include "dblayer.h" #include "ckutil.h" #include "cklist.h" +#include "ckerrlog.h" int run_INIT(UserOpt * opt, Conf *conf) { UNUSED(conf); @@ -48,10 +51,10 @@ int run_ADD(UserOpt * opt, Conf *conf) { case ADD_NO_ERR: break; case ADD_ERR_WRONG_CONFIG: - PRINT_ERR("The config file specified doesn't exist or is a link."); + ERR("The config file specified doesn't exist or is a link."); goto error; case ADD_ERR_WRONG_FLAGS: - PRINT_ERR("Flags are: -s for secret and -p for primary."); + ERR("Flags are: -s for secret and -p for primary."); goto error; } add_print_opts(&addOpt); -- cgit v1.2.3