From aa58bf181b9e6639146a4341572ccee0866ebbe3 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Tue, 27 Jan 2009 03:49:40 +0000 Subject: [PATCH] Add the context pointer to log output. --- src/sbbs3/js_request.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/sbbs3/js_request.c b/src/sbbs3/js_request.c index 0e9c39c50f..ad34fa7e4f 100644 --- a/src/sbbs3/js_request.c +++ b/src/sbbs3/js_request.c @@ -106,7 +106,7 @@ void js_debug_beginrequest(JSContext *cx, const char *file, unsigned long line) case LAST_REQUEST_TYPE_BEGIN: case LAST_REQUEST_TYPE_SUSPEND: case LAST_REQUEST_TYPE_RESUME: - sprintf(str,"Begin after %s from %s:%u at %s:%u\n",type_names[req->type],req->file,req->line,file,line); + sprintf(str,"Begin after %s from %s:%u at %s:%u (%p)\n",type_names[req->type],req->file,req->line,file,line,req->cx); logstr(); break; } @@ -115,7 +115,7 @@ void js_debug_beginrequest(JSContext *cx, const char *file, unsigned long line) break; case 1: default: - sprintf(str,"depth=%u at Begin after %s from %s:%u at %s:%u\n",cx->requestDepth,type_names[req->type],req->file,req->line,file,line); + sprintf(str,"depth=%u at Begin after %s from %s:%u at %s:%u (%p)\n",cx->requestDepth,type_names[req->type],req->file,req->line,file,line,req->cx); logstr(); break; } @@ -144,7 +144,7 @@ void js_debug_endrequest(JSContext *cx, const char *file, unsigned long line) case LAST_REQUEST_TYPE_BEGIN: if(req->file) { if(strcmp(req->file, file) != 0 || line < req->line) { - sprintf(str,"Suspicious End after %s from %s:%u at %s:%u\n",type_names[req->type],req->file,req->line,file,line); + sprintf(str,"Suspicious End after %s from %s:%u at %s:%u (%p)\n",type_names[req->type],req->file,req->line,file,line,req->cx); } break; } @@ -153,14 +153,14 @@ void js_debug_endrequest(JSContext *cx, const char *file, unsigned long line) case LAST_REQUEST_TYPE_NONE: case LAST_REQUEST_TYPE_END: case LAST_REQUEST_TYPE_SUSPEND: - sprintf(str,"End after %s from %s:%u at %s:%u\n",type_names[req->type],req->file,req->line,file,line); + sprintf(str,"End after %s from %s:%u at %s:%u (%p)\n",type_names[req->type],req->file,req->line,file,line,req->cx); logstr(); break; } switch(cx->requestDepth) { case 0: default: - sprintf(str,"depth=%u at End after %s from %s:%u at %s:%u\n",cx->requestDepth,type_names[req->type],req->file,req->line,file,line); + sprintf(str,"depth=%u at End after %s from %s:%u at %s:%u (%p)\n",cx->requestDepth,type_names[req->type],req->file,req->line,file,line,req->cx); logstr(); break; case 1: @@ -210,14 +210,14 @@ jsrefcount js_debug_suspendrequest(JSContext *cx, const char *file, unsigned lon break; case LAST_REQUEST_TYPE_END: case LAST_REQUEST_TYPE_SUSPEND: - sprintf(str,"Suspend after %s from %s:%u at %s:%u\n",type_names[req->type],req->file,req->line,file,line); + sprintf(str,"Suspend after %s from %s:%u at %s:%u (%p)\n",type_names[req->type],req->file,req->line,file,line,req->cx); logstr(); break; } switch(cx->requestDepth) { case 0: default: - sprintf(str,"depth=%u at Suspend after %s from %s:%u at %s:%u\n",cx->requestDepth,type_names[req->type],req->file,req->line,file,line); + sprintf(str,"depth=%u at Suspend after %s from %s:%u at %s:%u (%p)\n",cx->requestDepth,type_names[req->type],req->file,req->line,file,line,req->cx); logstr(); break; case 1: @@ -252,14 +252,14 @@ void js_debug_resumerequest(JSContext *cx, jsrefcount rc, const char *file, unsi case LAST_REQUEST_TYPE_END: case LAST_REQUEST_TYPE_BEGIN: case LAST_REQUEST_TYPE_RESUME: - sprintf(str,"Resume after %s from %s:%u at %s:%u\n",type_names[req->type],req->file,req->line,file,line); + sprintf(str,"Resume after %s from %s:%u at %s:%u (%p)\n",type_names[req->type],req->file,req->line,file,line,req->cx); logstr(); break; } switch(cx->requestDepth) { case 1: default: - sprintf(str,"depth=%u at Suspend after %s from %s:%u at %s:%u\n",cx->requestDepth,type_names[req->type],req->file,req->line,file,line); + sprintf(str,"depth=%u at Suspend after %s from %s:%u at %s:%u (%p)\n",cx->requestDepth,type_names[req->type],req->file,req->line,file,line,req->cx); logstr(); break; case 0: -- GitLab