]> sourceware.org Git - lvm2.git/commit
libdm: use dm_log_with_errno always
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 3 Nov 2016 16:15:07 +0000 (17:15 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 3 Nov 2016 16:49:07 +0000 (17:49 +0100)
commitee13f265f043b47a1b023321fb9e8470fb5703c1
tree9fe86e242342bde475c9259d214ca1fd2bd38ab5
parent221d8ff2a420a4104826907de9d71100dc208834
libdm: use dm_log_with_errno always

Instead of compiling 2 log call for 2 different logging functions,
and runtime decide which version to use - use only 'newer' function
and when user sets his own OLD dm_log logging translate it runtime
for old arg list set.

The positive part is - we get shorter generated library,
on the negative part this translation means, we always have evaluate
all args and print the message into local on stack buffer, before
we can pass this buffer to the users' logging function with proper
expected parameters (and such function may later decide to discard
logging based on message level so whole printing was unnecessary).
WHATS_NEW_DM
libdm/libdm-common.c
libdm/misc/dm-logging.h
This page took 0.037935 seconds and 5 git commands to generate.