cryptsetup-generator: state file name in error messages

This commit is contained in:
Michal Schmidt 2012-11-23 14:16:39 +01:00
parent 74576bea7a
commit 1cda32b8a2
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ static int create_disk(
f = fopen(p, "wxe");
if (!f) {
r = -errno;
log_error("Failed to create unit file: %m");
log_error("Failed to create unit file %s: %m", p);
goto fail;
}
@ -160,7 +160,7 @@ static int create_disk(
if (ferror(f)) {
r = -errno;
log_error("Failed to write file: %m");
log_error("Failed to write file %s: %m", p);
goto fail;
}