various: print the image path when setting up of the loopback device fails

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2021-04-23 15:11:38 +02:00
parent 409607c111
commit 7b87fe4c30
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -774,7 +774,7 @@ static int run(int argc, char *argv[]) {
FLAGS_SET(arg_flags, DISSECT_IMAGE_NO_PARTITION_TABLE) ? 0 : LO_FLAGS_PARTSCAN,
&d);
if (r < 0)
return log_error_errno(r, "Failed to set up loopback device: %m");
return log_error_errno(r, "Failed to set up loopback device for %s: %m", arg_image);
r = dissect_image_and_warn(
d->fd,