Print more legible error message if a drive open fails.
This commit is contained in:
parent
d884f7143f
commit
05f0cb5d5f
@ -62,8 +62,10 @@ open_drive(struct drive *drive, struct proc *p, int verbose)
|
||||
drive->lasterror = error;
|
||||
if (verbose)
|
||||
log(LOG_WARNING,
|
||||
"vinum open_drive %s: failed with error %d\n",
|
||||
drive->devicename, error); /* XXX */
|
||||
"vinum open_drive %s failed: %s (%d)\n",
|
||||
drive->devicename,
|
||||
strerror(error),
|
||||
error);
|
||||
return error;
|
||||
}
|
||||
drive->vp = nd.ni_vp;
|
||||
|
Loading…
x
Reference in New Issue
Block a user