Add some missing log_tag() when closing files

This commit is contained in:
Andrea Mazzoleni 2015-09-02 19:29:35 +02:00
parent f6368c7bec
commit fb3d0fbe70
2 changed files with 9 additions and 4 deletions

View file

@ -158,7 +158,7 @@ bail:
ret = handle_close(&handle[j]);
if (ret == -1) {
/* LCOV_EXCL_START */
log_tag("error:%u:%s:%s: Close error. %s\n", i, disk->name, esc(file->sub), strerror(errno));
log_tag("error:%u:%s:%s: Close error. %s\n", blockmax, disk->name, esc(file->sub), strerror(errno));
log_fatal("DANGER! Unexpected close error in a data disk.\n");
++error;
/* continue, as we are already exiting */