if (!is_open()) {
dev_errno = EBADF;
- Mmsg0(errmsg, _("Bad call to weof_dev. Device not open\n"));
+ Mmsg1(errmsg, _("Bad call to weof_dev. Device %s not open\n"), print_name());
Emsg0(M_FATAL, 0, errmsg);
return false;
}
if (!can_append()) {
- Mmsg0(errmsg, _("Attempt to WEOF on non-appendable Volume\n"));
+ Mmsg1(errmsg, _("Attempt to WEOF on non-appendable Volume %s\n"), VolHdr.VolumeName);
Emsg0(M_FATAL, 0, errmsg);
return false;
}
case VOL_NO_LABEL:
if (!dev->write_volume_label(dcr, newname, poolname,
relabel, true /* write label now */)) {
- dir->fsend(_("3912 Failed to label Volume: ERR=%s\n"), dcr->jcr->errmsg);
+ dir->fsend(_("3912 Failed to label Volume %s: ERR=%s\n"),
+ newname, dcr->jcr->errmsg);
break;
}
volCatBytes = dev->VolCatInfo.VolCatBytes;