Remove debug messages from VbAudioLooping() - too noisy.
The VBDEBUG() is logged even for production builds (visible as
/sys/firmware/log once the system boots). Too many messages clutter it up.
BUG=chrome-os-partner:7669
TEST=manual
Boot in dev-mode, log in and look at /sys/firmware/log. You shouldn't see
more than dozen lines or so of VbAudio debug messages.
Change-Id: I00465c0092d49feaa8d94aa8a13acbfa1e07743d
Reviewed-on: https://gerrit.chromium.org/gerrit/14603
Commit-Ready: Bill Richardson <wfrichar@chromium.org>
Tested-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
diff --git a/firmware/lib/vboot_audio.c b/firmware/lib/vboot_audio.c
index e64c89d..8792126 100644
--- a/firmware/lib/vboot_audio.c
+++ b/firmware/lib/vboot_audio.c
@@ -237,17 +237,11 @@
int looping = 1;
now = VbExGetTimer();
- VBDEBUG(("VbAudioLooping: now=%Lu, cur=%d, play_until=%Lu, next=%d/[0-%d]\n",
- now, audio->current_frequency, audio->play_until, audio->next_note,
- audio->note_count-1));
-
while (audio->next_note < audio->note_count && now >= audio->play_until) {
freq = audio->music_notes[audio->next_note].frequency;
msec = audio->music_notes[audio->next_note].msec;
audio->play_until += VbMsecToTicks(msec);
audio->next_note++;
- VBDEBUG((" freq=%d, play_until=%Lu, next=%d/[0-%d]\n",
- freq, audio->play_until, audio->next_note, audio->note_count-1));
}
if (now >= audio->play_until) {
@@ -264,11 +258,8 @@
} else if (freq && msec) {
VbExBeep(msec, freq);
now = VbExGetTimer();
- VBDEBUG((" (now=%ul)\n", now));
}
- VBDEBUG(("DONE: now=%Lu, freq=%d, looping=%d\n", now,
- audio->current_frequency, looping));
audio->last_time = now;
return looping;
}