1
0
Fork 0
forked from len0rd/rockbox

Fix building invadrog with DEBUG defined, patch by Yoshihisa Uchida, FS#9737

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19633 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nils Wallménius 2009-01-01 13:17:22 +00:00
parent 36531c7471
commit 91ad8f0029

View file

@ -44,8 +44,7 @@ PLUGIN_HEADER
/* #define DEBUG */
#ifdef DEBUG
#include <stdio.h>
#define DBG(format, arg...) { printf("%s: " format, __FUNCTION__, ## arg); }
#define DBG(format, arg...) { DEBUGF("%s: " format, __FUNCTION__, ## arg); }
#else
#define DBG(format, arg...) {}
#endif
@ -1789,7 +1788,7 @@ void game_loop(void)
PLAYFIELD_Y + 1 - SCORENUM_Y - FONT_HEIGHT);
/* Wait until next frame */
DBG("%d (%d)\n", end - *rb->current_tick, (CYCLETIME * HZ) / 1000);
DBG("%ld (%d)\n", end - *rb->current_tick, (CYCLETIME * HZ) / 1000);
if (end > *rb->current_tick) {
rb->sleep(end - *rb->current_tick);
} else {