mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
UserspaceEmulator: Use a report() function instead of dbgprintf()
Ultimately we'll want to make it a bit easier to add more reporting. This at least makes it easier to redirect the logging.
This commit is contained in:
parent
628b3badfb
commit
c7e4c0734b
4 changed files with 40 additions and 30 deletions
|
@ -61,8 +61,8 @@ void warn_if_uninitialized(T value_with_shadow, const char* message)
|
|||
void SoftCPU::warn_if_flags_tainted(const char* message) const
|
||||
{
|
||||
if (m_flags_tainted) {
|
||||
dbgprintf("\n");
|
||||
dbgprintf("==%d== \033[31;1mConditional depends on uninitialized data\033[0m (%s)\n", getpid(), message);
|
||||
report("\n");
|
||||
report("==%d== \033[31;1mConditional depends on uninitialized data\033[0m (%s)\n", getpid(), message);
|
||||
Emulator::the().dump_backtrace();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue