[Client] Print config on stdout (not stderr)
This commit is contained in:
parent
e48724b332
commit
9ca63f0858
|
@ -428,38 +428,38 @@ void check_configuration()
|
|||
|
||||
void print_configuration()
|
||||
{
|
||||
fprintf(stderr, "Options:\n"
|
||||
"\tDaemon: %s\n"
|
||||
"\tVerbose: %s\n"
|
||||
"\tDestination IP: %s\n"
|
||||
"\tDestination port: %"PRIuFAST16"\n"
|
||||
"\tInterface: %s\n"
|
||||
"\tDelay (ms): %"PRIdFAST32"\n"
|
||||
"\tNumber of packets: %"PRIuFAST16"\n"
|
||||
"\tPacket size: %"PRIuFAST16"\n"
|
||||
"\tFlood delay (ms): %"PRIdFAST32"\n"
|
||||
"\tNumber of requests: %"PRIuFAST16"\n"
|
||||
"\tListening port: %"PRIuFAST16"\n"
|
||||
"\tDirection: %"PRIu8"\n"
|
||||
"\tX: %f\n"
|
||||
"\tY: %f\n"
|
||||
"\tZ: %f\n"
|
||||
,
|
||||
OWL_BOOL_TO_STRING(options.daemon),
|
||||
OWL_BOOL_TO_STRING(options.verbose),
|
||||
options.dest_ip,
|
||||
options.dest_port,
|
||||
options.iface,
|
||||
options.delay,
|
||||
options.nb_pkt,
|
||||
options.pkt_size,
|
||||
options.flood_delay,
|
||||
options.nb_requests,
|
||||
options.listening_port,
|
||||
options.direction,
|
||||
options.x,
|
||||
options.y,
|
||||
options.z
|
||||
printf("Options:\n"
|
||||
"\tDaemon: %s\n"
|
||||
"\tVerbose: %s\n"
|
||||
"\tDestination IP: %s\n"
|
||||
"\tDestination port: %"PRIuFAST16"\n"
|
||||
"\tInterface: %s\n"
|
||||
"\tDelay (ms): %"PRIdFAST32"\n"
|
||||
"\tNumber of packets: %"PRIuFAST16"\n"
|
||||
"\tPacket size: %"PRIuFAST16"\n"
|
||||
"\tFlood delay (ms): %"PRIdFAST32"\n"
|
||||
"\tNumber of requests: %"PRIuFAST16"\n"
|
||||
"\tListening port: %"PRIuFAST16"\n"
|
||||
"\tDirection: %"PRIu8"\n"
|
||||
"\tX: %f\n"
|
||||
"\tY: %f\n"
|
||||
"\tZ: %f\n"
|
||||
,
|
||||
OWL_BOOL_TO_STRING(options.daemon),
|
||||
OWL_BOOL_TO_STRING(options.verbose),
|
||||
options.dest_ip,
|
||||
options.dest_port,
|
||||
options.iface,
|
||||
options.delay,
|
||||
options.nb_pkt,
|
||||
options.pkt_size,
|
||||
options.flood_delay,
|
||||
options.nb_requests,
|
||||
options.listening_port,
|
||||
options.direction,
|
||||
options.x,
|
||||
options.y,
|
||||
options.z
|
||||
) ;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue