projects
/
platform
/
upstream
/
multipath-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7eb9c1
)
Fixup varags usage
author
Hannes Reinecke
<hare@suse.de>
Wed, 30 Apr 2008 09:03:34 +0000
(11:03 +0200)
committer
Christophe Varoqui
<christophe.varoqui@free.fr>
Wed, 30 Apr 2008 11:25:13 +0000
(13:25 +0200)
We already call va_end() at the correct position, no need to
duplicate it in log_safe().
Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/log_pthread.c
patch
|
blob
|
history
diff --git
a/libmultipath/log_pthread.c
b/libmultipath/log_pthread.c
index
5a82b6a
..
d393ff4
100644
(file)
--- a/
libmultipath/log_pthread.c
+++ b/
libmultipath/log_pthread.c
@@
-15,9
+15,7
@@
void log_safe (int prio, const char * fmt, va_list ap)
{
pthread_mutex_lock(logq_lock);
- //va_start(ap, fmt);
log_enqueue(prio, fmt, ap);
- va_end(ap);
pthread_mutex_unlock(logq_lock);
pthread_mutex_lock(logev_lock);