Skip to content

Commit

Permalink
Remove/hide by default debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
rhargreaves committed Jul 23, 2024
1 parent b8b564a commit ea9b91a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion tests/system/test_e2e.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,6 @@ static void test_midi_portamento_glides_note(void** state)
scheduler_vsync();
scheduler_tick();
for (u16 i = 0; i < 99; i++) {
print_message("%d\n", i);
expect_ym2612_write_channel_any_data(0, 0xA4);
expect_ym2612_write_channel_any_data(0, 0xA0);
scheduler_vsync();
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/test_midi_portamento.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ static void test_midi_portamento_glides_note_up(UNUSED void** state)
expect_synth_pitch(0, 2, 0x43f);
midi_tick();
for (u16 i = 0; i < 148; i++) {
print_message("%d\n", i);
expect_synth_pitch_any();
midi_tick();
}
Expand All @@ -39,7 +38,6 @@ static void test_midi_portamento_glides_note_down(UNUSED void** state)
expect_synth_pitch(0, 4, 640);
midi_tick();
for (u16 i = 0; i < 148; i++) {
print_message("%d\n", i);
expect_synth_pitch_any();
midi_tick();
}
Expand Down
3 changes: 2 additions & 1 deletion tests/wraps.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "cmocka_inc.h"
#include "synth.h"
#include "types.h"
#include "debug.h"

static bool disableChecks = false;
static bool loggingChecks = false;
Expand Down Expand Up @@ -60,7 +61,7 @@ void __wrap_synth_noteOff(u8 channel)

void __wrap_synth_pitch(u8 channel, u8 octave, u16 freqNumber)
{
print_message("call: synth_pitch(%d, %d, %d)\n", channel, octave, freqNumber);
debug_message("call: synth_pitch(%d, %d, %d)\n", channel, octave, freqNumber);
if (disableChecks)
return;
check_expected(channel);
Expand Down

0 comments on commit ea9b91a

Please sign in to comment.