mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-13 08:01:33 +01:00
use log macro rather than fprintf to stderr
This commit is contained in:
parent
84ac5223b2
commit
e65db4b8c2
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue