2013-01-23 14:44:07 +01:00
|
|
|
From 1cda32b8a29750720872d3525084ac67b88e066f Mon Sep 17 00:00:00 2001
|
|
|
|
From: Michal Schmidt <mschmidt@redhat.com>
|
|
|
|
Date: Fri, 23 Nov 2012 14:16:39 +0100
|
|
|
|
Subject: [PATCH] cryptsetup-generator: state file name in error messages
|
|
|
|
|
|
|
|
---
|
|
|
|
src/cryptsetup/cryptsetup-generator.c | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
2013-03-20 11:29:34 +01:00
|
|
|
Index: systemd-195/src/cryptsetup/cryptsetup-generator.c
|
|
|
|
===================================================================
|
|
|
|
--- systemd-195.orig/src/cryptsetup/cryptsetup-generator.c
|
|
|
|
+++ systemd-195/src/cryptsetup/cryptsetup-generator.c
|
|
|
|
@@ -230,7 +230,7 @@ static int create_disk(
|
2013-01-23 14:44:07 +01:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2013-03-20 11:29:34 +01:00
|
|
|
@@ -283,7 +283,7 @@ static int create_disk(
|
2013-01-23 14:44:07 +01:00
|
|
|
|
|
|
|
if (ferror(f)) {
|
|
|
|
r = -errno;
|
|
|
|
- log_error("Failed to write file: %m");
|
|
|
|
+ log_error("Failed to write file %s: %m", p);
|
|
|
|
goto fail;
|
|
|
|
}
|
|
|
|
|