Index: generic/nsf.c =================================================================== diff -u -re1c25b411ed784b0f32610f04d2d7188f9cca418 -r453ad27418d60f0ab744ae4ac911bcd5e2505140 --- generic/nsf.c (.../nsf.c) (revision e1c25b411ed784b0f32610f04d2d7188f9cca418) +++ generic/nsf.c (.../nsf.c) (revision 453ad27418d60f0ab744ae4ac911bcd5e2505140) @@ -561,7 +561,7 @@ Tcl_DStringInit(&ds); va_start(ap, fmt); - NsfDStringPrintf(&ds, fmt, ap); + NsfDStringVPrintf(&ds, fmt, ap); va_end(ap); Tcl_DStringInit(&cmdString); @@ -16188,10 +16188,7 @@ #if defined(NSF_PROFILE) if (rst->doTrace) { - NsfProfile *profilePtr = &RUNTIME_STATE(interp)->profile; - - profilePtr->depth ++; - NsfLog(interp, NSF_LOG_NOTICE, "call(%d): %s", profilePtr->depth, fullMethodName); + NsfProfileTraceCallAppend(interp, fullMethodName); } #endif @@ -19901,7 +19898,7 @@ Tcl_DStringInit(&ds); va_start(ap, fmt); - NsfDStringPrintf(&ds, fmt, ap); + NsfDStringVPrintf(&ds, fmt, ap); va_end(ap); if (tcd->onerror != NULL) {