Search
j0ke.net Open Build Service
>
Projects
>
GFS
>
multipath-tools
> multipath-tools-fixup-varargs-again
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File multipath-tools-fixup-varargs-again of Package multipath-tools
diff --git a/libmultipath/log_pthread.c b/libmultipath/log_pthread.c index 5f1bf12..8909440 100644 --- a/libmultipath/log_pthread.c +++ b/libmultipath/log_pthread.c @@ -12,14 +12,10 @@ #include "log_pthread.h" #include "log.h" -void log_safe (int prio, const char * fmt, ...) +void log_safe (int prio, const char * fmt, va_list ap) { - 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); diff --git a/libmultipath/log_pthread.h b/libmultipath/log_pthread.h index 23ceb84..2b18f59 100644 --- a/libmultipath/log_pthread.h +++ b/libmultipath/log_pthread.h @@ -7,7 +7,7 @@ pthread_mutex_t *logq_lock; pthread_mutex_t *logev_lock; pthread_cond_t *logev_cond; -void log_safe(int prio, const char * fmt, ...); +void log_safe(int prio, const char * fmt, va_list ap); void log_thread_start(void); void log_thread_stop(void);