diff --git a/src/tools/pmempool/common.c b/src/tools/pmempool/common.c index 177691a3e9bf29a779238632f1c434525fe0ed07..53d189bcb522af0a5e58e528f22fc50f139a4504 100644 --- a/src/tools/pmempool/common.c +++ b/src/tools/pmempool/common.c @@ -1,5 +1,5 @@ /* - * Copyright 2014-2018, Intel Corporation + * Copyright 2014-2019, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -1417,7 +1417,8 @@ util_pool_clear_badblocks(const char *path, int create) } if (badblocks_clear_poolset(setp, create)) { - ERR("clearing bad blocks in the pool set failed -- '%s'", path); + outv_err("clearing bad blocks in the pool set failed -- '%s'", + path); errno = EIO; return -1; } diff --git a/src/tools/pmempool/feature.c b/src/tools/pmempool/feature.c index f01a00ffcb73930f4dd58be7e11e3ffc6adf6d8a..418a79816cf3415fa1b497b21ba1917617ff7787 100644 --- a/src/tools/pmempool/feature.c +++ b/src/tools/pmempool/feature.c @@ -1,5 +1,5 @@ /* - * Copyright 2018, Intel Corporation + * Copyright 2018-2019, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -146,7 +146,7 @@ feature_perform(struct feature_ctx *pfp) printf("%d", ret); return 0; default: - ERR("Invalid option."); + outv_err("Invalid option."); return -1; } } diff --git a/src/tools/pmempool/info.c b/src/tools/pmempool/info.c index f375823d19c2eddc875e6723d2ded6e0c7f45087..24f57d28a64f864c3db0a2b8759e638f709dfd8b 100644 --- a/src/tools/pmempool/info.c +++ b/src/tools/pmempool/info.c @@ -385,8 +385,8 @@ parse_args(const char *appname, int argc, char *argv[], } else if (strcmp(optarg, "yes") == 0) { argsp->badblocks = PRINT_BAD_BLOCKS_YES; } else { - ERR( - "'%s' -- invalid argument of the '--bad-blocks' option\n", + outv_err( + "'%s' -- invalid argument of the '-k/--bad-blocks' option\n", optarg); return -1; }