summaryrefslogtreecommitdiff
path: root/locale.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-03-20 22:58:38 -0600
committerKarl Williamson <khw@cpan.org>2019-03-21 10:50:01 -0600
commit19ee3daf45fd9f6312e89aeae0bc6dc8563e6c4a (patch)
tree7f900cec204ee34a97089986850f145cb4e1222b /locale.c
parentc0227122a5447e00b1f129874141e867a945afc2 (diff)
downloadperl-19ee3daf45fd9f6312e89aeae0bc6dc8563e6c4a.tar.gz
Add, improve some debugging stmts for -DL (locales)
Diffstat (limited to 'locale.c')
-rw-r--r--locale.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/locale.c b/locale.c
index 2b123d16ee..71cf1a36db 100644
--- a/locale.c
+++ b/locale.c
@@ -1048,7 +1048,11 @@ S_emulate_setlocale(const int category,
# ifdef DEBUGGING
if (DEBUG_Lv_TEST || debug_initialization) {
- PerlIO_printf(Perl_debug_log, "%s:%d: emulate_setlocale created %p; should have freed %p\n", __FILE__, __LINE__, new_obj, old_obj);
+ PerlIO_printf(Perl_debug_log, "%s:%d: emulate_setlocale created %p", __FILE__, __LINE__, new_obj);
+ if (old_obj) {
+ PerlIO_printf(Perl_debug_log, "; should have freed %p", old_obj);
+ }
+ PerlIO_printf(Perl_debug_log, "\n");
}
# endif