diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-07-11 22:28:40 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-07-11 22:28:40 +0000 |
commit | 2b6789581c5d1d556ba7c0e4719b4bf5d6f035bf (patch) | |
tree | d123882f46c38e192e00653cccf6df3863880188 /ldso/include/ldso.h | |
parent | 65ed8b75f305bb8671ab18e386baad29e79436c5 (diff) |
create a new wrapper macro for debug early output
Diffstat (limited to 'ldso/include/ldso.h')
-rw-r--r-- | ldso/include/ldso.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/ldso/include/ldso.h b/ldso/include/ldso.h index 869bcb675..db3fe054c 100644 --- a/ldso/include/ldso.h +++ b/ldso/include/ldso.h @@ -55,15 +55,21 @@ extern char *_dl_debug_detail; extern char *_dl_debug_nofixups; extern char *_dl_debug_bindings; extern int _dl_debug_file; +# define __dl_debug_dprint(fmt, args...) \ + _dl_dprintf(_dl_debug_file, "%s:%i: " fmt, __FUNCTION__, __LINE__, ## args); # define _dl_if_debug_dprint(fmt, args...) \ - do { \ - if (_dl_debug) \ - _dl_dprintf(_dl_debug_file, "%s():%i: " fmt, __FUNCTION__, __LINE__, ## args); \ - } while (0) + do { if (_dl_debug) __dl_debug_dprint(fmt, ## args); } while (0) #else +# define _dl_debug_dprint(fmt, args...) # define _dl_if_debug_dprint(fmt, args...) # define _dl_debug_file 2 -#endif +#endif /* __SUPPORT_LD_DEBUG__ */ + +#ifdef __SUPPORT_LD_DEBUG_EARLY__ +# define _dl_debug_early(fmt, args...) __dl_debug_dprint(fmt, ## args) +#else +# define _dl_debug_early(fmt, args...) +#endif /* __SUPPORT_LD_DEBUG_EARLY__ */ #ifndef NULL #define NULL ((void *) 0) |