diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-04-21 05:35:17 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-04-21 05:35:17 +0000 |
commit | b1f00493078c189ea41a846aee0aa3b9330f490c (patch) | |
tree | 81fc7be55ea6543889fc0cd7745354b5a8c88465 /apps/plugins/midi | |
parent | c69f032df4753dbd5f848c12f41adeefa74a31a6 (diff) |
Fix the undefined char symbols appearing in many output lines. This printf does neither support nor need \n.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13229 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/midi')
-rw-r--r-- | apps/plugins/midi/midifile.c | 18 | ||||
-rw-r--r-- | apps/plugins/midi/midiutil.c | 14 | ||||
-rw-r--r-- | apps/plugins/midi/sequencer.c | 4 | ||||
-rw-r--r-- | apps/plugins/midi/synth.c | 18 |
4 files changed, 27 insertions, 27 deletions
diff --git a/apps/plugins/midi/midifile.c b/apps/plugins/midi/midifile.c index 32eeeec92b..7161818421 100644 --- a/apps/plugins/midi/midifile.c +++ b/apps/plugins/midi/midifile.c @@ -30,7 +30,7 @@ struct MIDIfile * loadFile(char * filename) if(file==-1) { - printf("Could not open file\n"); + printf("Could not open file"); return NULL; } @@ -39,7 +39,7 @@ struct MIDIfile * loadFile(char * filename) if(mfload==NULL) { rb->close(file); - printf("Could not allocate memory for MIDIfile struct\n"); + printf("Could not allocate memory for MIDIfile struct"); return NULL; } @@ -50,8 +50,8 @@ struct MIDIfile * loadFile(char * filename) { if(fileID == ID_RIFF) { - printf("\nDetected RMID file"); - printf("\nLooking for MThd header"); + printf("Detected RMID file"); + printf("Looking for MThd header"); char dummy[17]; rb->read(file, &dummy, 16); if(readID(file) != ID_MTHD) @@ -88,7 +88,7 @@ struct MIDIfile * loadFile(char * filename) int track=0; - printf("\nFile has %d tracks.", mfload->numTracks); + printf("File has %d tracks.", mfload->numTracks); while(! eof(file) && track < mfload->numTracks) { @@ -99,7 +99,7 @@ struct MIDIfile * loadFile(char * filename) { if(mfload->numTracks != track) { - printf("\nError: file claims to have %d tracks.\n I only see %d here.\n", mfload->numTracks, track); + printf("Error: file claims to have %d tracks. I only see %d here.", mfload->numTracks, track); mfload->numTracks = track; } return mfload; @@ -111,7 +111,7 @@ struct MIDIfile * loadFile(char * filename) track++; } else { - printf("\n SKIPPING TRACK"); + printf("SKIPPING TRACK"); int len = readFourBytes(file); while(--len) readChar(file); @@ -223,7 +223,7 @@ struct Track * readTrack(int file) { if(trackSize < dataPtr-trk->dataBlock) { - printf("\nTrack parser memory out of bounds"); + printf("Track parser memory out of bounds"); exit(1); } dataPtr+=sizeof(struct Event); @@ -245,7 +245,7 @@ int readID(int file) id[a]=readChar(file); if(eof(file)) { - printf("\nEnd of file reached."); + printf("End of file reached."); return ID_EOF; } if(rb->strcmp(id, "MThd")==0) diff --git a/apps/plugins/midi/midiutil.c b/apps/plugins/midi/midiutil.c index aa3a0cca28..5149104c14 100644 --- a/apps/plugins/midi/midiutil.c +++ b/apps/plugins/midi/midiutil.c @@ -160,13 +160,13 @@ void *alloc(int size) if (size + 4 > totalSize) { - printf("\nMALLOC BARF"); - printf("\nMALLOC BARF"); - printf("\nMALLOC BARF"); - printf("\nMALLOC BARF"); - printf("\nMALLOC BARF"); - printf("\nMALLOC BARF"); - printf("\nMALLOC BARF"); + printf("MALLOC BARF"); + printf("MALLOC BARF"); + printf("MALLOC BARF"); + printf("MALLOC BARF"); + printf("MALLOC BARF"); + printf("MALLOC BARF"); + printf("MALLOC BARF"); /* We've made our point. */ return NULL; diff --git a/apps/plugins/midi/sequencer.c b/apps/plugins/midi/sequencer.c index d56bd26f5c..68c29f35ad 100644 --- a/apps/plugins/midi/sequencer.c +++ b/apps/plugins/midi/sequencer.c @@ -230,7 +230,7 @@ void pressNote(int ch, int note, int vol) if(drumSet[note]!=NULL) { if(note<35) - printf("\nNOTE LESS THAN 35, AND A DRUM PATCH EXISTS FOR THIS? WHAT THE HELL?"); + printf("NOTE LESS THAN 35, AND A DRUM PATCH EXISTS FOR THIS? WHAT THE HELL?"); struct GWaveform * wf = drumSet[note]->waveforms[0]; voices[a].wf=wf; @@ -328,7 +328,7 @@ int tick(void) struct Track * tr = mf->tracks[a]; if(tr == NULL) - printf("\nNULL TRACK: %d", a); + printf("NULL TRACK: %d", a); //BIG DEBUG STATEMENT diff --git a/apps/plugins/midi/synth.c b/apps/plugins/midi/synth.c index 5a7a02f0a1..6ec229b4bf 100644 --- a/apps/plugins/midi/synth.c +++ b/apps/plugins/midi/synth.c @@ -91,7 +91,7 @@ int initSynth(struct MIDIfile * mf, char * filename, char * drumConfig) if(mf->tracks[a] == NULL) { - printf("\nNULL TRACK !!!"); + printf("NULL TRACK !!!"); rb->splash(HZ*2, "Null Track in loader."); return -1; } @@ -110,10 +110,10 @@ int initSynth(struct MIDIfile * mf, char * filename, char * drumConfig) int file = rb->open(filename, O_RDONLY); if(file < 0) { - printf("\n"); - printf("\nNo MIDI patchset found."); - printf("\nPlease install the instruments."); - printf("\nSee Rockbox page for more info."); + printf(""); + printf("No MIDI patchset found."); + printf("Please install the instruments."); + printf("See Rockbox page for more info."); rb->splash(HZ*2, "No Instruments"); return -1; @@ -125,7 +125,7 @@ int initSynth(struct MIDIfile * mf, char * filename, char * drumConfig) /* Scan our config file and load the right patches as needed */ int c = 0; name[0] = '\0'; - printf("\nLoading instruments"); + printf("Loading instruments"); for(a=0; a<128; a++) { while(readChar(file)!=' ' && !eof(file)); @@ -157,7 +157,7 @@ int initSynth(struct MIDIfile * mf, char * filename, char * drumConfig) /* Scan our config file and load the drum data */ int idx=0; char number[30]; - printf("\nLoading drums"); + printf("Loading drums"); while(!eof(file)) { readTextBlock(file, number); @@ -195,12 +195,12 @@ void setPoint(struct SynthObject * so, int pt) if(so->wf==NULL) { - printf("\nCrap... null waveform..."); + printf("Crap... null waveform..."); exit(1); } if(so->wf->envRate==NULL) { - printf("\nWaveform has no envelope set"); + printf("Waveform has no envelope set"); exit(1); } |