aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2018-03-18 23:56:57 -0400
committercnlohr <lohr85@gmail.com>2018-03-18 23:56:57 -0400
commit7b898b0f78ef7c658f15c12c389ae80b022909d7 (patch)
tree5cb9e685206c78408b08338139e35d22abdc2c19 /src
parent471d0e4a3db8248a8e968fcf25d59f53d2c5c139 (diff)
downloadlibsurvive-7b898b0f78ef7c658f15c12c389ae80b022909d7.tar.gz
libsurvive-7b898b0f78ef7c658f15c12c389ae80b022909d7.tar.bz2
Cleanup annoying printf instead of SV_INFO
Diffstat (limited to 'src')
-rwxr-xr-xsrc/survive.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/survive.c b/src/survive.c
index f0c24f5..ced2092 100755
--- a/src/survive.c
+++ b/src/survive.c
@@ -224,16 +224,16 @@ int survive_startup( SurviveContext * ctx )
const char * PreferredPoser = survive_configs( ctx, "defaultposer", SC_SETCONFIG, "PoserTurveyTori");
PoserCB PreferredPoserCB = 0;
const char * FirstPoser = 0;
- printf( "Available posers:\n" );
+ SV_INFO( "Available posers:" );
while( ( DriverName = GetDriverNameMatching( "Poser", i++ ) ) )
{
PoserCB p = GetDriver( DriverName );
if( !PreferredPoserCB ) PreferredPoserCB = p;
int ThisPoser = strcmp( DriverName, PreferredPoser ) == 0;
- printf( "\t%c%s\n", ThisPoser?'*':' ', DriverName );
+ SV_INFO( "\t%c%s", ThisPoser?'*':' ', DriverName );
if( ThisPoser ) PreferredPoserCB = p;
}
- printf( "Totals %d posers. Using selected poser (or first!).\n", i-1 );
+ SV_INFO( "Totals %d posers. Using selected poser (or first!).", i-1 );
if( !PreferredPoserCB )
{
SV_ERROR( "Error. Cannot find any valid poser." );
@@ -243,9 +243,9 @@ int survive_startup( SurviveContext * ctx )
while( ( DriverName = GetDriverNameMatching( "DriverReg", i++ ) ) )
{
DeviceDriver dd = GetDriver( DriverName );
- printf( "Loading driver %s (%p) (%d)\n", DriverName, dd, i );
+ SV_INFO( "Loading driver %s (%p) (%d)", DriverName, dd, i );
r = dd( ctx );
- printf( "Driver %s reports status %d\n", DriverName, r );
+ SV_INFO( "Driver %s reports status %d", DriverName, r );
}
//Apply poser to objects.
for( i = 0; i < ctx->objs_ct; i++ )