summaryrefslogtreecommitdiff
path: root/messages.h
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2018-09-12 17:52:16 -0700
committerDavid Sterba <dsterba@suse.com>2018-10-25 16:11:40 +0200
commit251d32ea5cd1cf74cb52557f3a75930e947f170f (patch)
tree9dd0806d70254aba4977128a3a447136bfcb17cc /messages.h
parent9d3303fa1b5d8e797a63c588934d0f7a6c84fa1c (diff)
btrfs-progs: Eliminate remaining uses of strerror(errno)
%m allows a smaller filesize. Useful on embedded systems. Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: David Sterba <dsterba@suse.com>
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)