add a shnitton of loggers
This commit is contained in:
@ -8,12 +8,12 @@ void BufferedCGA::init(unsigned int pages) {
|
||||
this->screen_buffer = std::make_unique<CGA::cga_page_t>();
|
||||
|
||||
if (this->scrollback_buffer == NULL || this->screen_buffer == NULL) {
|
||||
if constexpr (DEBUG) { kout << "Error initializing scrollback buffer" << endl; }
|
||||
log << ERROR << "Error initializing scrollback buffer" << endl;
|
||||
return;
|
||||
}
|
||||
|
||||
this->initialized = true;
|
||||
if constexpr (DEBUG) { kout << "Initialized scrollback buffer" << endl; }
|
||||
log << INFO << "Initialized scrollback buffer" << endl;
|
||||
}
|
||||
|
||||
void BufferedCGA::display_scrollback() {
|
||||
@ -26,7 +26,7 @@ void BufferedCGA::display_scrollback() {
|
||||
this->scrollback_buffer->get((CGA::cga_line_t*)CGA_START, this->scrollback - 1);
|
||||
}
|
||||
} else {
|
||||
if constexpr (DEBUG) { kout << "ScrollbackBuffer not initialized" << endl; }
|
||||
log << DEBUG << "ScrollbackBuffer not initialized" << endl;
|
||||
}
|
||||
}
|
||||
|
||||
@ -45,7 +45,7 @@ void BufferedCGA::scrollup() {
|
||||
if (this->initialized) {
|
||||
this->scrollback_buffer->put((CGA::cga_line_t*)CGA_START);
|
||||
} else {
|
||||
if constexpr (DEBUG) { kout << "ScrollbackBuffer not initialized" << endl; }
|
||||
log << DEBUG << "ScrollbackBuffer not initialized" << endl;
|
||||
}
|
||||
|
||||
CGA::scrollup();
|
||||
@ -59,7 +59,7 @@ void BufferedCGA::clear() {
|
||||
this->scrollback_buffer->clear();
|
||||
mmem::zero<CGA::cga_page_t>(this->screen_buffer.get());
|
||||
} else {
|
||||
if constexpr (DEBUG) { kout << "ScrollbackBuffer not initialized" << endl; }
|
||||
log << DEBUG << "ScrollbackBuffer not initialized" << endl;
|
||||
}
|
||||
}
|
||||
|
||||
@ -78,7 +78,7 @@ void BufferedCGA::scroll_page_backward() {
|
||||
}
|
||||
this->display_scrollback();
|
||||
} else {
|
||||
if constexpr (DEBUG) { kout << "ScrollbackBuffer not initialized" << endl; }
|
||||
log << DEBUG << "ScrollbackBuffer not initialized" << endl;
|
||||
}
|
||||
}
|
||||
|
||||
@ -90,6 +90,6 @@ void BufferedCGA::scroll_page_forward() {
|
||||
}
|
||||
this->display_scrollback();
|
||||
} else {
|
||||
if constexpr (DEBUG) { kout << "ScrollbackBuffer not initialized" << endl; }
|
||||
log << DEBUG << "ScrollbackBuffer not initialized" << endl;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user