From 1cda32b8a29750720872d3525084ac67b88e066f Mon Sep 17 00:00:00 2001 From: Michal Schmidt 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(-) diff --git a/src/cryptsetup/cryptsetup-generator.c b/src/cryptsetup/cryptsetup-generator.c index ef16fbc..6e7b707 100644 --- a/src/cryptsetup/cryptsetup-generator.c +++ b/src/cryptsetup/cryptsetup-generator.c @@ -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; } -- 1.7.10.4