use log macro rather than fprintf to stderr

This commit is contained in:
ehouse 2009-11-02 00:09:56 +00:00
parent 84ac5223b2
commit e65db4b8c2

View file

@ -685,15 +685,14 @@ parsePair( const char* optarg, XP_U16* min, XP_U16* max )
bool success = false;
char* colon = strstr( optarg, ":" );
if ( !colon ) {
fprintf( stderr, ": not found in argument\n" );
XP_LOGF( ": not found in argument\n" );
} else {
int intmin, intmax;
if ( 2 == sscanf( optarg, "%d:%d", &intmin, &intmax ) ) {
if ( intmin <= intmin ) {
success = true;
*min = intmin;
*max = intmax;
fprintf( stderr, "min: %d; max: %d\n", *min, *max );
success = true;
}
}
}