1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:54:58 +00:00

Everywhere: Replace a bundle of dbg with dbgln.

These changes are arbitrarily divided into multiple commits to make it
easier to find potentially introduced bugs with git bisect.
This commit is contained in:
asynts 2021-01-17 20:28:43 +01:00 committed by Andreas Kling
parent 24888457d5
commit fb8d3635d9
9 changed files with 99 additions and 69 deletions

View file

@ -24,6 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <AK/Debug.h>
#include <AK/LogStream.h>
#include <AK/MappedFile.h>
#include <AK/QuickSort.h>
@ -35,8 +36,6 @@
#include <stdio.h>
#include <string.h>
//#define DISASM_DUMP
int main(int argc, char** argv)
{
const char* path = nullptr;
@ -100,10 +99,10 @@ int main(int argc, char** argv)
return a.size < b.size;
return a.name < b.name;
});
#ifdef DISASM_DUMP
for (size_t i = 0; i < symbols.size(); ++i)
dbg() << symbols[i].name << ": " << (void*)(uintptr_t)symbols[i].value << ", " << symbols[i].size;
#endif
if constexpr (debug_disasm_dump) {
for (size_t i = 0; i < symbols.size(); ++i)
dbgln("{}: {:p}, {}", symbols[i].name, symbols[i].value, symbols[i].size);
}
}
}