]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - include/debugobj.h
1 #ifndef UTIL_LINUX_DEBUGOBJ_H
2 #define UTIL_LINUX_DEBUGOBJ_H
5 * Include *after* debug.h and after UL_DEBUG_CURRENT_MASK define.
8 static inline void __attribute__ ((__format__ (__printf__
, 2, 3)))
9 ul_debugobj(const void *handler
, const char *mesg
, ...)
13 if (handler
&& !(UL_DEBUG_CURRENT_MASK
& __UL_DEBUG_FL_NOADDR
))
14 fprintf(stderr
, "[%p]: ", handler
);
17 vfprintf(stderr
, mesg
, ap
);
22 #endif /* UTIL_LINUX_DEBUGOBJ_H */