Adding upstream version 2.41.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
parent
9586bb3c92
commit
c36e531662
3661 changed files with 2164106 additions and 0 deletions
26
include/debugobj.h
Normal file
26
include/debugobj.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* No copyright is claimed. This code is in the public domain; do with
|
||||
* it what you wish.
|
||||
*/
|
||||
#ifndef UTIL_LINUX_DEBUGOBJ_H
|
||||
#define UTIL_LINUX_DEBUGOBJ_H
|
||||
|
||||
/*
|
||||
* Include *after* debug.h and after UL_DEBUG_CURRENT_MASK define.
|
||||
*/
|
||||
|
||||
static inline void __attribute__ ((__format__ (__printf__, 2, 3)))
|
||||
ul_debugobj(const void *handler, const char *mesg, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
if (handler && !(UL_DEBUG_CURRENT_MASK & __UL_DEBUG_FL_NOADDR))
|
||||
fprintf(stderr, "[%p]: ", handler);
|
||||
|
||||
va_start(ap, mesg);
|
||||
vfprintf(stderr, mesg, ap);
|
||||
va_end(ap);
|
||||
fputc('\n', stderr);
|
||||
}
|
||||
|
||||
#endif /* UTIL_LINUX_DEBUGOBJ_H */
|
Loading…
Add table
Add a link
Reference in a new issue