|
|
| version 1.16, 2006/06/21 06:12:08 | version 1.17, 2007/02/01 19:02:45 |
|---|---|
| Line 450 ds_match( int argc, char *argv[], drive_ | Line 450 ds_match( int argc, char *argv[], drive_ |
| if ( ! optarg || optarg[ 0 ] == '-' ) { | if ( ! optarg || optarg[ 0 ] == '-' ) { |
| mlog( MLOG_NORMAL | MLOG_WARNING | MLOG_DRIVE, | mlog( MLOG_NORMAL | MLOG_WARNING | MLOG_DRIVE, |
| _("-%c argument missing\n"), | _("-%c argument missing\n"), |
| optopt ); | c ); |
| return -10; | return -10; |
| } | } |
| cmdlineblksize = ( u_int32_t )atoi( optarg ); | cmdlineblksize = ( u_int32_t )atoi( optarg ); |
| Line 527 ds_instantiate( int argc, char *argv[], | Line 527 ds_instantiate( int argc, char *argv[], |
| if ( ! optarg || optarg[ 0 ] == '-' ) { | if ( ! optarg || optarg[ 0 ] == '-' ) { |
| mlog( MLOG_NORMAL | MLOG_WARNING | MLOG_DRIVE, | mlog( MLOG_NORMAL | MLOG_WARNING | MLOG_DRIVE, |
| _("-%c argument missing\n"), | _("-%c argument missing\n"), |
| optopt ); | c ); |
| return BOOL_FALSE; | return BOOL_FALSE; |
| } | } |
| contextp->dc_ringlen = ( size_t )atoi( optarg ); | contextp->dc_ringlen = ( size_t )atoi( optarg ); |
| Line 537 ds_instantiate( int argc, char *argv[], | Line 537 ds_instantiate( int argc, char *argv[], |
| mlog( MLOG_NORMAL | MLOG_ERROR | MLOG_DRIVE, | mlog( MLOG_NORMAL | MLOG_ERROR | MLOG_DRIVE, |
| _("-%c argument must be " | _("-%c argument must be " |
| "between %u and %u: ignoring %u\n"), | "between %u and %u: ignoring %u\n"), |
| optopt, | c, |
| RINGLEN_MIN, | RINGLEN_MIN, |
| RINGLEN_MAX, | RINGLEN_MAX, |
| contextp->dc_ringlen ); | contextp->dc_ringlen ); |
| Line 566 ds_instantiate( int argc, char *argv[], | Line 566 ds_instantiate( int argc, char *argv[], |
| if ( ! optarg || optarg [ 0 ] == '-' ) { | if ( ! optarg || optarg [ 0 ] == '-' ) { |
| mlog( MLOG_NORMAL | MLOG_WARNING | MLOG_DRIVE, | mlog( MLOG_NORMAL | MLOG_WARNING | MLOG_DRIVE, |
| _("-%c argument missing\n"), | _("-%c argument missing\n"), |
| optopt ); | c ); |
| return BOOL_FALSE; | return BOOL_FALSE; |
| } | } |
| contextp->dc_filesz = (off64_t)atoi( optarg ) * 1024 * 1024; | contextp->dc_filesz = (off64_t)atoi( optarg ) * 1024 * 1024; |
| Line 574 ds_instantiate( int argc, char *argv[], | Line 574 ds_instantiate( int argc, char *argv[], |
| mlog( MLOG_NORMAL | MLOG_WARNING | MLOG_DRIVE, | mlog( MLOG_NORMAL | MLOG_WARNING | MLOG_DRIVE, |
| _("-%c argument must be a " | _("-%c argument must be a " |
| "positive number (MB): ignoring %u\n"), | "positive number (MB): ignoring %u\n"), |
| optopt, | c, |
| contextp->dc_filesz ); | contextp->dc_filesz ); |
| return BOOL_FALSE; | return BOOL_FALSE; |
| } | } |