pp_hot.c: Show lengths in -Dr output for minlen optimisation
authorFather Chrysostomos <sprout@cpan.org>
Thu, 25 Jul 2013 01:14:06 +0000 (18:14 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 25 Aug 2013 19:25:22 +0000 (12:25 -0700)
pp_hot.c

index e07b1b9..ca95830 100644 (file)
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1384,7 +1384,9 @@ PP(pp_match)
     }
 
     if (RX_MINLEN(rx) >= 0 && (STRLEN)RX_MINLEN(rx) > len) {
-        DEBUG_r(PerlIO_printf(Perl_debug_log, "String shorter than min possible regex match\n"));
+        DEBUG_r(PerlIO_printf(Perl_debug_log, "String shorter than min possible regex match (%"
+                                              UVuf" < %"IVdf")\n",
+                                              (UV)len, (IV)RX_MINLEN(rx)));
        goto nope;
     }