1#ifndef LDPSIZ_DPRINTF_H
2# define LDPSIZ_DPRINTF_H
15# define DPRINTF(arg) do{ \
18 dpr_status=pthread_mutex_lock(&outputLock); \
20 strerror_r(dpr_status, dpr_buff, sizeof(dpr_buff)); \
21 fprintf(stderr,"%s:%s:%d: lock %d (%s)\n", \
22 __FILE__,__func__,__LINE__, \
23 dpr_status, dpr_buff); \
28 dpr_status = pthread_mutex_unlock(&outputLock); \
30 strerror_r(dpr_status, dpr_buff, sizeof(dpr_buff)); \
31 fprintf(stderr,"%s:%s:%d: unlock %d (%s)\n", \
32 __FILE__,__func__,__LINE__, \
33 dpr_status, dpr_buff); \