chiark / gitweb /
tests: compress unit name tests and add more asserts
[elogind.git] / src / cryptsetup / cryptsetup-generator.c
index ef16fbc2f521ba21652f8b20ef1201ab21ed831d..6e7b7070e22586f8b6b10c00ea86045c123e33c6 100644 (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;
         }