diff options
author | Eric Blake <ebb9@byu.net> | 2007-10-22 14:57:28 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2007-10-22 14:57:28 -0600 |
commit | f9d8c9ac448afd144085adb30ca5d23c3a0f1351 (patch) | |
tree | 6c0ce29157f73fb546016a52866ce2156737d231 /m4/module.c | |
parent | 8cdf04b3b237b97163652f52b32ecb17679e2a27 (diff) | |
download | m4-cvs-readonly.tar.gz |
Never let printf failures go undetected.cvs-readonly
* ltdl/m4/gnulib-cache.m4: Augment with 'gnulib-tool --import
xprintf'.
* m4/system_.h: Include xprintf.h.
* m4/debug.c (m4_debug_message_prefix, m4_debug_message): Wrap all
use of printf, xprintf.
* m4/input.c [DEBUG_INPUT]: Likewise.
* m4/module.c [DEBUG_MODULES]: Likewise.
* m4/output.c (m4_shipout_text, m4_shipout_int)
(m4_freeze_diversions): Likewise.
* m4/path.c [DEBUG_INCL]: Likewise.
* m4/symtab.c [DEBUG_SYM]: Likewise.
* m4/syntax.c [DEBUG_SYNTAX]: Likewise.
* modules/modtest.c (export_test): Likewise.
* src/freeze.c (produce_resyntax_dump, produce_syntax_dump)
(produce_module_dump, dump_symbol_CB, produce_frozen_state):
Likewise.
* src/main.c (usage): Likewise.
* po/POTFILES.in: Adjust to new file.
* po/Makevars (XGETTEXT_OPTIONS): Likewise.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'm4/module.c')
-rw-r--r-- | m4/module.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/m4/module.c b/m4/module.c index 4c68c0ac..458808eb 100644 --- a/m4/module.c +++ b/m4/module.c @@ -405,8 +405,8 @@ m4__module_open (m4 *context, const char *name, m4_obstack *obs) #ifdef DEBUG_MODULES if (info->ref_count > 1) { - fprintf (stderr, "module %s: now has %d libtool references.", - name, info->ref_count); + xfprintf (stderr, "module %s: now has %d libtool references.", + name, info->ref_count); } #endif /* DEBUG_MODULES */ @@ -545,8 +545,8 @@ module_remove (m4 *context, m4_module *module, m4_obstack *obs) #ifdef DEBUG_MODULES if (info->ref_count > 1) { - fprintf (stderr, "module %s: now has %d libtool references.", - name, info->ref_count - 1); + xfprintf (stderr, "module %s: now has %d libtool references.", + name, info->ref_count - 1); } #endif /* DEBUG_MODULES */ |