diff options
Diffstat (limited to 'apps/plugins/midi/midiutil.c')
-rw-r--r-- | apps/plugins/midi/midiutil.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/plugins/midi/midiutil.c b/apps/plugins/midi/midiutil.c index 8e27e739e7..daadae8a4f 100644 --- a/apps/plugins/midi/midiutil.c +++ b/apps/plugins/midi/midiutil.c | |||
@@ -62,6 +62,7 @@ | |||
62 | 62 | ||
63 | extern struct plugin_api * rb; | 63 | extern struct plugin_api * rb; |
64 | 64 | ||
65 | int printf(const char *fmt, ...); | ||
65 | 66 | ||
66 | int chVol[16] IBSS_ATTR; /* Channel volume */ | 67 | int chVol[16] IBSS_ATTR; /* Channel volume */ |
67 | int chPanLeft[16] IBSS_ATTR; /* Channel panning */ | 68 | int chPanLeft[16] IBSS_ATTR; /* Channel panning */ |
@@ -156,6 +157,15 @@ void *alloc(int size) | |||
156 | 157 | ||
157 | if (size + 4 > totalSize) | 158 | if (size + 4 > totalSize) |
158 | { | 159 | { |
160 | printf("\nMALLOC BARF"); | ||
161 | printf("\nMALLOC BARF"); | ||
162 | printf("\nMALLOC BARF"); | ||
163 | printf("\nMALLOC BARF"); | ||
164 | printf("\nMALLOC BARF"); | ||
165 | printf("\nMALLOC BARF"); | ||
166 | printf("\nMALLOC BARF"); | ||
167 | /* We've made our point. */ | ||
168 | |||
159 | return NULL; | 169 | return NULL; |
160 | } | 170 | } |
161 | 171 | ||
@@ -229,7 +239,7 @@ int eof(int fd) | |||
229 | // Here is a hacked up printf command to get the output from the game. | 239 | // Here is a hacked up printf command to get the output from the game. |
230 | int printf(const char *fmt, ...) | 240 | int printf(const char *fmt, ...) |
231 | { | 241 | { |
232 | static int p_xtpt; | 242 | static int p_xtpt = 0; |
233 | char p_buf[50]; | 243 | char p_buf[50]; |
234 | bool ok; | 244 | bool ok; |
235 | va_list ap; | 245 | va_list ap; |