Skip to content
Snippets Groups Projects
Commit 845eb854 authored by rswindell's avatar rswindell
Browse files

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
No related tags found
No related merge requests found
...@@ -1372,7 +1372,9 @@ struct savedline { ...@@ -1372,7 +1372,9 @@ struct savedline {
bool sbbs_t::saveline(void) bool sbbs_t::saveline(void)
{ {
struct savedline line; 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.beg_attr = latr;
line.end_attr = curatr; line.end_attr = curatr;
line.column = column; line.column = column;
...@@ -1387,7 +1389,9 @@ bool sbbs_t::restoreline(void) ...@@ -1387,7 +1389,9 @@ bool sbbs_t::restoreline(void)
struct savedline* line = (struct savedline*)listPopNode(&savedlines); struct savedline* line = (struct savedline*)listPopNode(&savedlines);
if(line == NULL) if(line == NULL)
return false; 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; lbuflen=0;
attr(line->beg_attr); attr(line->beg_attr);
rputs(line->buf); rputs(line->buf);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment