fs-util: include error cause in log message
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 19 Oct 2018 15:48:21 +0000 (00:48 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 19 Oct 2018 15:48:21 +0000 (00:48 +0900)
src/basic/fs-util.c

index 3d83fc9..91e8396 100644 (file)
@@ -1173,7 +1173,7 @@ int unlinkat_deallocate(int fd, const char *name, int flags) {
                 return 0;
 
         if (fstat(truncate_fd, &st) < 0) {
-                log_debug_errno(errno, "Failed to stat file '%s' for deallocation, ignoring.", name);
+                log_debug_errno(errno, "Failed to stat file '%s' for deallocation, ignoring: %m", name);
                 return 0;
         }