diff options
author | subrata_modak <subrata_modak> | 2009-02-23 10:42:15 +0000 |
---|---|---|
committer | subrata_modak <subrata_modak> | 2009-02-23 10:42:15 +0000 |
commit | 15f5ffdf2be547c232c6112c6e9b1ac350370d13 (patch) | |
tree | d2f5905d840f530779090f5d86993947f3de1e5d /pan | |
parent | 71d9d1942364fb5b32ad20f77b949ef9f17de99f (diff) |
pan: Honor the -q command line option: If one wants pan to be quiet, pan should honor this. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>.
Diffstat (limited to 'pan')
-rw-r--r-- | pan/pan.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -49,7 +49,7 @@ * - added option to create a command file with all failed tests. * */ -/* $Id: pan.c,v 1.30 2009/02/19 07:13:24 subrata_modak Exp $ */ +/* $Id: pan.c,v 1.31 2009/02/23 10:42:15 subrata_modak Exp $ */ #include <errno.h> #include <string.h> @@ -207,7 +207,7 @@ main(int argc, char **argv) filename = strdup(optarg); break; case 'h': /* help */ - fprintf(stdout, "Usage: pan -n name [ -SyAehp ] [ -s starts ]" + fprintf(stdout, "Usage: pan -n name [ -SyAehpq ] [ -s starts ]" " [-t time[s|m|h|d] [ -x nactive ] [ -l logfile ]\n\t" "[ -a active-file ] [ -f command-file ] " "[ -C fail-command-file ] " @@ -253,7 +253,8 @@ main(int argc, char **argv) default: printf("Invalid time modifier, try: s|h|m|d\n"); exit(-1); } - printf("PAN will run for %d seconds\n", run_time); + if (!quiet_mode) + printf("PAN will run for %d seconds\n", run_time); } timed = 1; //-t implies run as many starts as possible, by default break; |