fix verbose output in DAOS & DFS drivers
Signed-off-by: Mohamad Chaarawi <mohamad.chaarawi@intel.com>master
parent
2f713e947d
commit
0a7b1e38ea
|
@ -171,7 +171,7 @@ do { \
|
|||
|
||||
#define INFO(level, param, format, ...) \
|
||||
do { \
|
||||
if (param->verbose >= level) \
|
||||
if (verbose >= level) \
|
||||
printf("[%d] "format"\n", rank, ##__VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
|
@ -260,7 +260,7 @@ static void ContainerOpen(char *testFileName, IOR_param_t *param,
|
|||
testFileName);
|
||||
}
|
||||
|
||||
INFO(VERBOSE_2, param, "Openning container %s", testFileName);
|
||||
INFO(VERBOSE_2, param, "Opening container %s", testFileName);
|
||||
|
||||
if (param->open == WRITE)
|
||||
dFlags = DAOS_COO_RW;
|
||||
|
|
|
@ -243,7 +243,7 @@ DFS_Init(IOR_param_t *param) {
|
|||
if (svcl == NULL)
|
||||
ERR("Failed to allocate svcl");
|
||||
|
||||
if (verbose >= 3) {
|
||||
if (verbose >= VERBOSE_1) {
|
||||
printf("Pool uuid = %s, SVCL = %s\n", o.pool, o.svcl);
|
||||
printf("DFS Container namespace uuid = %s\n", o.cont);
|
||||
}
|
||||
|
@ -259,7 +259,7 @@ DFS_Init(IOR_param_t *param) {
|
|||
rc = daos_cont_open(poh, co_uuid, DAOS_COO_RW, &coh, &co_info, NULL);
|
||||
/* If NOEXIST we create it */
|
||||
if (rc == -DER_NONEXIST) {
|
||||
if (verbose >= 3)
|
||||
if (verbose >= VERBOSE_1)
|
||||
printf("Creating DFS Container ...\n");
|
||||
rc = daos_cont_create(poh, co_uuid, NULL);
|
||||
if (rc == 0) {
|
||||
|
|
Loading…
Reference in New Issue