1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-12-11 18:49:16 +00:00

Use logging function instead of printf.

This commit is contained in:
Radosław Kujawa 2018-03-28 13:52:07 +02:00
parent 390bbdc14e
commit b35323cb3d

View File

@ -8,6 +8,7 @@
#include "bus.h"
#include "rk65c02.h"
#include "log.h"
#include "utils.h"
@ -33,7 +34,7 @@ rom_start(rk65c02emu_t *e, const char *name, const atf_tc_t *tc)
const char *path;
path = rom_path(name, tc);
printf("%s\n", path);
rk65c02_log(LOG_INFO, "Loading ROM: %s", path);
e->regs.PC = ROM_LOAD_ADDR;
if(!bus_load_file(e->bus, ROM_LOAD_ADDR, path))
return false;