From 2a18a2e6d7eee8140e7f272ba855236c7c422d1d Mon Sep 17 00:00:00 2001 From: Vyacheslav Egorov Date: Wed, 19 Aug 2015 19:54:54 +0200 Subject: [PATCH] FIx NYICF message It should use %s instead of %p because in jit/dump.lua info associated with an error is formatted to string with fmtfunc(info) if info is a function. This means NYICF used to print addresses of temporary strings returned by fmtfunc(...) instead of anything useful. --- src/lj_traceerr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lj_traceerr.h b/src/lj_traceerr.h index 0f38562b..12e90d03 100644 --- a/src/lj_traceerr.h +++ b/src/lj_traceerr.h @@ -25,7 +25,7 @@ TREDEF(BADTYPE, "bad argument type") TREDEF(CJITOFF, "JIT compilation disabled for function") TREDEF(CUNROLL, "call unroll limit reached") TREDEF(DOWNREC, "down-recursion, restarting") -TREDEF(NYICF, "NYI: C function %p") +TREDEF(NYICF, "NYI: C function %s") TREDEF(NYIFF, "NYI: FastFunc %s") TREDEF(NYIFFU, "NYI: unsupported variant of FastFunc %s") TREDEF(NYIRETL, "NYI: return to lower frame")