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
This commit is contained in:
parent
c69f032df4
commit
b1f0049307
5 changed files with 31 additions and 31 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -133,7 +133,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
rb->cpu_boost(true);
|
||||
#endif
|
||||
|
||||
printf("\n%s", parameter);
|
||||
printf("%s", parameter);
|
||||
/* rb->splash(HZ, true, parameter); */
|
||||
|
||||
#ifdef RB_PROFILE
|
||||
|
@ -218,12 +218,12 @@ int midimain(void * filename)
|
|||
{
|
||||
int notesUsed = 0;
|
||||
int a=0;
|
||||
printf("\nLoading file");
|
||||
printf("Loading file");
|
||||
mf= loadFile(filename);
|
||||
|
||||
if(mf == NULL)
|
||||
{
|
||||
printf("\nError loading file.");
|
||||
printf("Error loading file.");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -245,7 +245,7 @@ int midimain(void * filename)
|
|||
* This seems to work quite well. On a laptop, anyway.
|
||||
*/
|
||||
|
||||
printf("\nOkay, starting sequencing");
|
||||
printf("Okay, starting sequencing");
|
||||
|
||||
bpm=mf->div*1000000/tempo;
|
||||
numberOfSamples=SAMPLE_RATE/bpm;
|
||||
|
|
Loading…
Reference in a new issue