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
74d50304
Commit
74d50304
authored
21 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Changed all lprintf/eprintf/lputs implementations/calls to use a log_level arg.
parent
9ef382e5
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/sbbsecho.c
+4
-5
4 additions, 5 deletions
src/sbbs3/sbbsecho.c
with
4 additions
and
5 deletions
src/sbbs3/sbbsecho.c
+
4
−
5
View file @
74d50304
...
...
@@ -144,7 +144,7 @@ unsigned _rotr (
/******************************************************************************
Displays characters locally
******************************************************************************/
int
lputs
(
char
*
str
)
static
int
lputs
(
int
level
,
char
*
str
)
{
char
tmp
[
256
];
int
i
,
j
,
k
;
...
...
@@ -161,10 +161,9 @@ int lputs(char *str)
}
/****************************************************************************/
/* Performs printf() through local assembly routines */
/* Called from everywhere */
/* This is needed by load_cfg.c */
/****************************************************************************/
int
lprintf
(
char
*
fmat
,
...)
int
lprintf
(
int
level
,
char
*
fmat
,
...)
{
va_list
argptr
;
char
sbuf
[
256
];
...
...
@@ -174,7 +173,7 @@ int lprintf(char *fmat, ...)
chcount
=
vsnprintf
(
sbuf
,
sizeof
(
sbuf
),
fmat
,
argptr
);
sbuf
[
sizeof
(
sbuf
)
-
1
]
=
0
;
va_end
(
argptr
);
lputs
(
sbuf
);
lputs
(
level
,
sbuf
);
return
(
chcount
);
}
...
...
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