SDL : More stderr > stdout thanks to tttttttttanaka

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@682 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
bgk 2008-09-02 09:40:25 +00:00
parent 94549c6713
commit a5a44bf925
1 changed files with 9 additions and 9 deletions

View File

@ -310,27 +310,27 @@ static struct lirc_config *LIRCConfigInfo;
void StartLirc(void) void StartLirc(void)
{ {
fprintf(stderr, "Trying to start LIRC: "); fprintf(stdout, "Trying to start LIRC: ");
//init LIRC and Record output //init LIRC and Record output
LIRCfd = lirc_init( "vbam",1 ); LIRCfd = lirc_init( "vbam",1 );
if( LIRCfd == -1 ) { if( LIRCfd == -1 ) {
//it failed //it failed
fprintf(stderr, "Failed\n"); fprintf(stdout, "Failed\n");
} else { } else {
fprintf(stderr, "Success\n"); fprintf(stdout, "Success\n");
//read the config file //read the config file
char LIRCConfigLoc[2048]; char LIRCConfigLoc[2048];
sprintf(LIRCConfigLoc, "%s/%s/%s", homeDir, DOT_DIR, "lircrc"); sprintf(LIRCConfigLoc, "%s/%s/%s", homeDir, DOT_DIR, "lircrc");
fprintf(stderr, "LIRC Config file:"); fprintf(stdout, "LIRC Config file:");
if( lirc_readconfig(LIRCConfigLoc,&LIRCConfigInfo,NULL) == 0 ) { if( lirc_readconfig(LIRCConfigLoc,&LIRCConfigInfo,NULL) == 0 ) {
//check vbam dir for lircrc //check vbam dir for lircrc
fprintf(stderr, "Loaded (%s)\n", LIRCConfigLoc ); fprintf(stdout, "Loaded (%s)\n", LIRCConfigLoc );
} else if( lirc_readconfig(NULL,&LIRCConfigInfo,NULL) == 0 ) { } else if( lirc_readconfig(NULL,&LIRCConfigInfo,NULL) == 0 ) {
//check default lircrc location //check default lircrc location
fprintf(stderr, "Loaded\n"); fprintf(stdout, "Loaded\n");
} else { } else {
//it all failed //it all failed
fprintf(stderr, "Failed\n"); fprintf(stdout, "Failed\n");
LIRCEnabled = false; LIRCEnabled = false;
} }
LIRCEnabled = true; LIRCEnabled = true;
@ -342,7 +342,7 @@ void StopLirc(void)
//did we actually get lirc working at the start //did we actually get lirc working at the start
if(LIRCEnabled) { if(LIRCEnabled) {
//if so free the config and deinit lirc //if so free the config and deinit lirc
fprintf(stderr, "Shuting down LIRC\n"); fprintf(stdout, "Shuting down LIRC\n");
lirc_freeconfig(LIRCConfigInfo); lirc_freeconfig(LIRCConfigInfo);
lirc_deinit(); lirc_deinit();
//set lirc enabled to false //set lirc enabled to false
@ -2323,7 +2323,7 @@ void systemMessage(int num, const char *msg, ...)
va_start(valist, msg); va_start(valist, msg);
vsprintf(buffer, msg, valist); vsprintf(buffer, msg, valist);
fprintf(stdout, "%s\n", buffer); fprintf(stderr, "%s\n", buffer);
va_end(valist); va_end(valist);
} }