Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
aa58bf18
Commit
aa58bf18
authored
16 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Add the context pointer to log output.
parent
7307c8e3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/js_request.c
+9
-9
9 additions, 9 deletions
src/sbbs3/js_request.c
with
9 additions
and
9 deletions
src/sbbs3/js_request.c
+
9
−
9
View file @
aa58bf18
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment