From ec566286b48672f9472c4bc1e573bea354ad0823 Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Thu, 29 Jul 2010 10:56:50 +0200 Subject: [PATCH] [Client] Fix usage printing Print default values for delay and number of packets. --- infrastructure-centred/owlps-client/owlps-client.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/infrastructure-centred/owlps-client/owlps-client.c b/infrastructure-centred/owlps-client/owlps-client.c index 3c9ce5b..0ce8dd0 100644 --- a/infrastructure-centred/owlps-client/owlps-client.c +++ b/infrastructure-centred/owlps-client/owlps-client.c @@ -422,8 +422,11 @@ void print_usage() "\t-d dest_ip\tDestination IP address of the localisation request.\n" "\t-p dest_port\tDestination port of the localisation request" " (default: %d).\n" - "\t-t delay\tTime between each packet transmission.\n" - "\t-n nb_packets\tNumber of packet transmitted for the request.\n" + "\t-t delay\tTime between each packet transmission (default: %d" + " µs for a normal request, %d µs for a calibration request).\n" + "\t-n nb_packets\tNumber of packet transmitted for the request" + " (default: %d for a normal request, %d for a calibration" + " request).\n" "\t-i iface\tName of the network interface used to transmit the" " request (e.g. \"eth2\"). If this option is absent, interface" " is selected automatically. You must be root to use this" @@ -435,6 +438,10 @@ void print_usage() program_name, program_name, LOC_REQUEST_DEFAULT_PORT, + DEFAULT_DELAY_NORMAL, + DEFAULT_DELAY_CALIB, + DEFAULT_NBPKT_NORMAL, + DEFAULT_NBPKT_CALIB, MOBILE_DEFAULT_PORT ) ; }