From 686951ea8d36b19172112347a5325edac1ab6778 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 24 Nov 2016 19:31:19 -0800 Subject: [PATCH] ircd::js: Allow string deleter to print the string in its debug log. --- ircd/js.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ircd/js.cc b/ircd/js.cc index 65f32f091..a73ebe4d3 100644 --- a/ircd/js.cc +++ b/ircd/js.cc @@ -2363,9 +2363,11 @@ void ircd::js::native_external_deleter(const JSStringFinalizer *const fin, char16_t *const buf) { - log.debug("string delete (fin: %p buf: %p)", + log.debug("runtime(%p): string(%p) delete (dtor @%p) \"%s\"", + (const void *)rt, + (const void *)buf, (const void *)fin, - (const void *)buf); + locale::char16::conv(buf).c_str()); delete[] buf; }