summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2012-01-21 11:54:11 -0800
committerGerrit <chrome-bot@google.com>2012-01-22 10:06:08 -0800
commit506649c5cd6f7943b2e0565325b2db8346b55f47 (patch)
treef6af6e572e662122b13af3d3407b9840d0c4331b
parent037dba21243559e93aa98c428c0655ceb418b23f (diff)
downloadvboot-506649c5cd6f7943b2e0565325b2db8346b55f47.tar.gz
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>
-rw-r--r--firmware/lib/vboot_audio.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/firmware/lib/vboot_audio.c b/firmware/lib/vboot_audio.c
index e64c89d3..87921266 100644
--- a/firmware/lib/vboot_audio.c
+++ b/firmware/lib/vboot_audio.c
@@ -237,17 +237,11 @@ int VbAudioLooping(VbAudioContext* audio) {
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 @@ int VbAudioLooping(VbAudioContext* audio) {
} 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;
}