summaryrefslogtreecommitdiff
path: root/messages.h
diff options
context:
space:
mode:
Diffstat (limited to 'messages.h')
-rw-r--r--messages.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/messages.h b/messages.h
index 2b97aa08..ec7d9338 100644
--- a/messages.h
+++ b/messages.h
@@ -61,9 +61,9 @@
PRINT_TRACE_ON_ERROR; \
PRINT_VERBOSE_ERROR; \
if (lib_str && strcmp(errno_str, lib_str) != 0) \
- __btrfs_error("%s: %s", lib_str, errno_str); \
+ __btrfs_error("%s: %m", lib_str); \
else \
- __btrfs_error("%s", errno_str); \
+ __btrfs_error("%m"); \
DO_ABORT_ON_ERROR; \
} while (0)