diff options
author | Sumit Bose <sbose@redhat.com> | 2014-08-26 17:29:08 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-08-27 16:44:10 +0200 |
commit | cbc005cd63523ca7d772c9f0c7ea9a4817c2c07e (patch) | |
tree | d888732c382c58fe29e78784f4eb84044fe950dc /scripts/release.sh | |
parent | e87f92f04f297fbdb0ae916945513a67b8a63044 (diff) | |
download | sssd-cbc005cd63523ca7d772c9f0c7ea9a4817c2c07e.tar.gz sssd-cbc005cd63523ca7d772c9f0c7ea9a4817c2c07e.tar.xz sssd-cbc005cd63523ca7d772c9f0c7ea9a4817c2c07e.zip |
sss_log: fix handling of variable argument lists
SSSD has two public calls to send messages to syslog sss_log() and
sss_log_ext() which both expect besides other arguments a printf format
string and a variable list of arguments depending on the format.
Currently sss_log() calls sss_log_ext() internally after calling
va_start(ap, format) and hands over ap as the last argument. This does
not work because there is a difference between a varying number of
arguments and a va_list type.
To fix this I added a new private call which expects a va_list as the
last argument and is called by sss_log() and sss_log_ext() after calling
va_start().
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'scripts/release.sh')
0 files changed, 0 insertions, 0 deletions