Skip to content

Commit f40402a

Browse files
committed
Do not use printf() for logging
1 parent 254314e commit f40402a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/chips/cgia.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#define CHIPS_ASSERT(c) assert(c)
1818
#endif
1919

20+
#include "../log.h"
21+
2022
#define _CGIA_CLAMP(x) ((x) > 255 ? 255 : (x))
2123
#define _CGIA_RGBA(r, g, b) \
2224
(0xFF000000 | _CGIA_CLAMP((r * 4) / 3) | (_CGIA_CLAMP((g * 4) / 3) << 8) | (_CGIA_CLAMP((b * 4) / 3) << 16))
@@ -967,7 +969,7 @@ void cgia_encode_sprite_mirror(uint32_t* rgbbuf, const uint32_t* descriptor, con
967969
#undef cgia_reset
968970

969971
static void _cgia_copy_vcache_bank(cgia_t* vpu, uint8_t bank) {
970-
printf("Copying VRAM bank %u to cache (wanted bank %u)\n", bank, vram_wanted_bank[bank]);
972+
LOG_INFO("Copying VRAM bank %u to cache (wanted bank %u)\n", bank, vram_wanted_bank[bank]);
971973
for (size_t i = 0; i < 256 * 256; ++i) {
972974
vram_cache[bank][i] = vpu->fetch_cb((vram_wanted_bank[bank] << 16) | i, vpu->user_data);
973975
}

src/x65.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ static void app_load_rom_labels(const char* rom_file) {
136136
const size_t path_len = strlen(buf);
137137
if (buf[path_len - 4] == '.') {
138138
strcpy(&buf[path_len - 4], ".lbl");
139+
LOG_INFO("Looking for labels file: %s", buf);
139140

140141
if (access(buf, R_OK) == 0) {
141142
LOG_INFO("Loading labels file: %s", buf);

0 commit comments

Comments
 (0)