Skip to content

Commit

Permalink
dataplacement: change log_info to log_err for error messages
Browse files Browse the repository at this point in the history
Signed-off-by: Ankit Kumar <[email protected]>
  • Loading branch information
ankit-sam committed Jul 17, 2024
1 parent 481b6e3 commit 6715cca
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions dataplacement.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,25 +71,25 @@ static int init_ruh_info(struct thread_data *td, struct fio_file *f)
ruhs = calloc(1, sizeof(*ruhs));
ret = fdp_ruh_info(td, f, ruhs);
if (ret) {
log_info("fio: ruh info failed for %s (%d)\n",
f->file_name, -ret);
log_err("fio: ruh info failed for %s (%d)\n",
f->file_name, -ret);
goto out;
}

nr_ruhs = ruhs->nr_ruhs;
ruhs = realloc(ruhs, sizeof(*ruhs) + nr_ruhs * sizeof(*ruhs->plis));
if (!ruhs) {
log_info("fio: ruhs buffer realloc failed for %s\n",
f->file_name);
log_err("fio: ruhs buffer realloc failed for %s\n",
f->file_name);
ret = -ENOMEM;
goto out;
}

ruhs->nr_ruhs = nr_ruhs;
ret = fdp_ruh_info(td, f, ruhs);
if (ret) {
log_info("fio: ruh info failed for %s (%d)\n",
f->file_name, -ret);
log_err("fio: ruh info failed for %s (%d)\n",
f->file_name, -ret);
goto out;
}

Expand Down Expand Up @@ -151,7 +151,7 @@ static int init_ruh_scheme(struct thread_data *td, struct fio_file *f)

if (!scheme_fp) {
log_err("fio: ruh scheme failed to open scheme file %s\n",
td->o.dp_scheme_file);
td->o.dp_scheme_file);
ret = -errno;
goto out;
}
Expand Down

0 comments on commit 6715cca

Please sign in to comment.