diff options
author | Nils Wallménius <nils@rockbox.org> | 2009-01-01 13:17:22 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2009-01-01 13:17:22 +0000 |
commit | 91ad8f0029fe2b4295a89393d7cdbc4707c46c17 (patch) | |
tree | 690bd494ef07e6b3354ae8415f3bb11ef336c4f7 | |
parent | 36531c7471374260f8c987380f228f32688f4d20 (diff) | |
download | rockbox-91ad8f0029fe2b4295a89393d7cdbc4707c46c17.tar.gz rockbox-91ad8f0029fe2b4295a89393d7cdbc4707c46c17.zip |
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
-rw-r--r-- | apps/plugins/invadrox.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/plugins/invadrox.c b/apps/plugins/invadrox.c index 8554e511d8..ae89985f91 100644 --- a/apps/plugins/invadrox.c +++ b/apps/plugins/invadrox.c | |||
@@ -44,8 +44,7 @@ PLUGIN_HEADER | |||
44 | 44 | ||
45 | /* #define DEBUG */ | 45 | /* #define DEBUG */ |
46 | #ifdef DEBUG | 46 | #ifdef DEBUG |
47 | #include <stdio.h> | 47 | #define DBG(format, arg...) { DEBUGF("%s: " format, __FUNCTION__, ## arg); } |
48 | #define DBG(format, arg...) { printf("%s: " format, __FUNCTION__, ## arg); } | ||
49 | #else | 48 | #else |
50 | #define DBG(format, arg...) {} | 49 | #define DBG(format, arg...) {} |
51 | #endif | 50 | #endif |
@@ -1789,7 +1788,7 @@ void game_loop(void) | |||
1789 | PLAYFIELD_Y + 1 - SCORENUM_Y - FONT_HEIGHT); | 1788 | PLAYFIELD_Y + 1 - SCORENUM_Y - FONT_HEIGHT); |
1790 | 1789 | ||
1791 | /* Wait until next frame */ | 1790 | /* Wait until next frame */ |
1792 | DBG("%d (%d)\n", end - *rb->current_tick, (CYCLETIME * HZ) / 1000); | 1791 | DBG("%ld (%d)\n", end - *rb->current_tick, (CYCLETIME * HZ) / 1000); |
1793 | if (end > *rb->current_tick) { | 1792 | if (end > *rb->current_tick) { |
1794 | rb->sleep(end - *rb->current_tick); | 1793 | rb->sleep(end - *rb->current_tick); |
1795 | } else { | 1794 | } else { |