mirror of
git://sourceware.org/git/lvm2.git
synced 2025-04-29 18:50:41 +03:00
logging: tidy log_sys_error when string empty
This commit is contained in:
parent
cba228f856
commit
28760275e6
@ -1,5 +1,6 @@
|
||||
Version 2.02.100 -
|
||||
================================
|
||||
Suppress arg: prefix in log_sys_error macro when arg is empty string.
|
||||
Fix bug making lvchange unable to change recovery rate for RAID.
|
||||
Prohibit conversion of thin pool to external origin.
|
||||
Workaround gcc v4.8 -O2 bug causing failures if config/checks=1 (32bit arch).
|
||||
|
@ -99,9 +99,9 @@
|
||||
|
||||
/* System call equivalents */
|
||||
#define log_sys_error(x, y) \
|
||||
log_err("%s: %s failed: %s", y, x, strerror(errno))
|
||||
log_err("%s%s%s failed: %s", y, *y ? ": " : "", x, strerror(errno))
|
||||
#define log_sys_error_suppress(s, x, y) \
|
||||
log_err_suppress(s, "%s: %s failed: %s", y, x, strerror(errno))
|
||||
log_err_suppress(s, "%s%s%s failed: %s", y, *y ? ": " : "", x, strerror(errno))
|
||||
#define log_sys_very_verbose(x, y) \
|
||||
log_info("%s: %s failed: %s", y, x, strerror(errno))
|
||||
#define log_sys_debug(x, y) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user