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
845eb854
Commit
845eb854
authored
4 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Fix a couple of printf-format warnings in debug-level log output.
Exclude these messages from non-debug builds too.
parent
1274fa31
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/con_out.cpp
+6
-2
6 additions, 2 deletions
src/sbbs3/con_out.cpp
with
6 additions
and
2 deletions
src/sbbs3/con_out.cpp
+
6
−
2
View file @
845eb854
...
...
@@ -1372,7 +1372,9 @@ struct savedline {
bool
sbbs_t
::
saveline
(
void
)
{
struct
savedline
line
;
lprintf
(
LOG_DEBUG
,
"Saving %d chars, cursor at col %d: '%.*s'"
,
lbuflen
,
column
,
lbuflen
,
lbuf
);
#ifdef _DEBUG
lprintf
(
LOG_DEBUG
,
"Saving %d chars, cursor at col %ld: '%.*s'"
,
lbuflen
,
column
,
lbuflen
,
lbuf
);
#endif
line
.
beg_attr
=
latr
;
line
.
end_attr
=
curatr
;
line
.
column
=
column
;
...
...
@@ -1387,7 +1389,9 @@ bool sbbs_t::restoreline(void)
struct
savedline
*
line
=
(
struct
savedline
*
)
listPopNode
(
&
savedlines
);
if
(
line
==
NULL
)
return
false
;
lprintf
(
LOG_DEBUG
,
"Restoring %d chars, cursor at col %d: '%s'"
,
strlen
(
line
->
buf
),
line
->
column
,
line
->
buf
);
#ifdef _DEBUG
lprintf
(
LOG_DEBUG
,
"Restoring %d chars, cursor at col %ld: '%s'"
,
strlen
(
line
->
buf
),
line
->
column
,
line
->
buf
);
#endif
lbuflen
=
0
;
attr
(
line
->
beg_attr
);
rputs
(
line
->
buf
);
...
...
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