diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2016-11-03 12:07:27 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2016-11-03 12:43:09 +0100 |
commit | e50d434a353efac7d4947c7deeaf7cfd773ea6e1 (patch) | |
tree | d22d0af6f997da25aa466d09a678b6e40207b723 /libdm/libdm-common.c | |
parent | 6af26273cb8c0ef310296ba0f4dd42751ab25b0a (diff) | |
download | lvm2-e50d434a353efac7d4947c7deeaf7cfd773ea6e1.tar.gz |
libdm: report logging with errno as changed default
When user changes logging with 'dm_log_with_errno_init()'
also report this as non default dm logging.
Diffstat (limited to 'libdm/libdm-common.c')
-rw-r--r-- | libdm/libdm-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdm/libdm-common.c b/libdm/libdm-common.c index 7756009b4..5deb555a4 100644 --- a/libdm/libdm-common.c +++ b/libdm/libdm-common.c @@ -174,7 +174,7 @@ void dm_log_init(dm_log_fn fn) int dm_log_is_non_default(void) { - return (dm_log == _default_log) ? 0 : 1; + return (dm_log == _default_log && dm_log_with_errno == _default_log_with_errno) ? 0 : 1; } void dm_log_with_errno_init(dm_log_with_errno_fn fn) |