Remove legacy GENERAL log channel

Add some more log channels instead.
This commit is contained in:
Nekotekina 2020-02-01 07:15:50 +03:00
parent efafda2650
commit d9a0619ddd
26 changed files with 269 additions and 221 deletions

View file

@ -1,8 +1,9 @@
#include "memory_string_searcher.h"
#include <QLabel>
LOG_CHANNEL(gui_log);
memory_string_searcher::memory_string_searcher(QWidget* parent)
: QDialog(parent)
{
@ -33,7 +34,7 @@ void memory_string_searcher::OnSearch()
const char *str = wstr.toStdString().c_str();
const u32 len = wstr.length();
LOG_NOTICE(GENERAL, "Searching for string %s", str);
gui_log.notice("Searching for string %s", str);
// Search the address space for the string
u32 strIndex = 0;
@ -53,7 +54,7 @@ void memory_string_searcher::OnSearch()
if (strIndex == len)
{
// Found it
LOG_NOTICE(GENERAL, "Found @ %04x", addr - len);
gui_log.notice("Found @ %04x", addr - len);
numFound++;
strIndex = 0;
continue;
@ -68,9 +69,9 @@ void memory_string_searcher::OnSearch()
if (addr % (1024 * 1024 * 64) == 0) // Log every 64mb
{
LOG_NOTICE(GENERAL, "Searching %04x ...", addr);
gui_log.notice("Searching %04x ...", addr);
}
}
LOG_NOTICE(GENERAL, "Search completed (found %d matches)", numFound);
gui_log.notice("Search completed (found %d matches)", numFound);
}