diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-06-25 08:47:43 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-06-25 08:47:43 +0000 |
commit | a534ea55c565618ea1670ee2be6ec39b648f8e36 (patch) | |
tree | fc4262db3ea82258a056743853799732a2d49161 /ldso/include/ldso.h | |
parent | ea3903eb7b862092d948edf8b568e8b57b06758f (diff) |
move _dl_if_debug_dprint() to shared ldso header
Diffstat (limited to 'ldso/include/ldso.h')
-rw-r--r-- | ldso/include/ldso.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ldso/include/ldso.h b/ldso/include/ldso.h index ba28baa3e..71cdd5ca8 100644 --- a/ldso/include/ldso.h +++ b/ldso/include/ldso.h @@ -55,8 +55,14 @@ extern char *_dl_debug_detail; extern char *_dl_debug_nofixups; extern char *_dl_debug_bindings; extern int _dl_debug_file; +# define _dl_if_debug_dprint(fmt, args...) \ + do { \ + if (_dl_debug) \ + _dl_dprintf(_dl_debug_file, "%s():%i: " fmt, __FUNCTION__, __LINE__, ## args); \ + } while (0) #else -#define _dl_debug_file 2 +# define _dl_if_debug_dprint(fmt, args...) +# define _dl_debug_file 2 #endif #ifndef NULL @@ -72,6 +78,4 @@ extern void _dl_dprintf(int, const char *, ...); extern void _dl_get_ready_to_run(struct elf_resolve *tpnt, unsigned long load_addr, Elf32_auxv_t auxvt[AT_EGID + 1], char **envp, char **argv); - #endif /* _LDSO_H_ */ - |