diff options
author | Anastasis Grammenos <anastasis.gramm2@gmail.com> | 2018-10-04 15:46:42 +0300 |
---|---|---|
committer | Anastasis Grammenos <anastasis.gramm2@gmail.com> | 2018-10-04 15:46:42 +0300 |
commit | 9c24e438b689af042672182f6d87f824ef435492 (patch) | |
tree | 9f91c4951bd2e4a799868b0a3369161918045a6e /src/actions.c | |
parent | fa41863b03bbf67a7ad4edad9328b0cdc48e497b (diff) | |
download | ck-9c24e438b689af042672182f6d87f824ef435492.tar.gz ck-9c24e438b689af042672182f6d87f824ef435492.tar.bz2 ck-9c24e438b689af042672182f6d87f824ef435492.zip |
More error/logs and fix failing test
Diffstat (limited to 'src/actions.c')
-rw-r--r-- | src/actions.c | 7 |
1 files changed, 5 insertions, 2 deletions
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 <limits.h> #include <stdlib.h> +#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); |