svn rev #25008: trunk/src/tests/threads/
raeburn@MIT.EDU
raeburn at MIT.EDU
Thu Jun 30 23:26:46 EDT 2011
http://src.mit.edu/fisheye/changelog/krb5/?cs=25008
Commit By: raeburn
Log Message:
Display default values in usage message.
Changed Files:
U trunk/src/tests/threads/t_rcache.c
Modified: trunk/src/tests/threads/t_rcache.c
===================================================================
--- trunk/src/tests/threads/t_rcache.c 2011-07-01 00:29:10 UTC (rev 25007)
+++ trunk/src/tests/threads/t_rcache.c 2011-07-01 03:26:46 UTC (rev 25008)
@@ -45,9 +45,12 @@
int idx;
};
+#define DEFAULT_N_THREADS 2
+#define DEFAULT_INTERVAL 20 /* 5 * 60 */
+
int init_once = 0;
-int n_threads = 2;
-int interval = 20 /* 5 * 60 */;
+int n_threads = DEFAULT_N_THREADS;
+int interval = DEFAULT_INTERVAL;
int *ip;
static void wait_for_tick ()
@@ -131,8 +134,11 @@
fprintf (stderr, "usage: %s [ options ]\n", prog);
fprintf (stderr, "options:\n");
fprintf (stderr, "\t-1\tcreate one rcache handle for process\n");
- fprintf (stderr, "\t-t N\tnumber of threads to create\n");
- fprintf (stderr, "\t-i N\tinterval to run test over, in seconds\n");
+ fprintf (stderr, "\t-t N\tnumber of threads to create (default: %d)\n",
+ DEFAULT_N_THREADS);
+ fprintf (stderr,
+ "\t-i N\tinterval to run test over, in seconds (default: %d)\n",
+ DEFAULT_INTERVAL);
exit(1);
}
More information about the cvs-krb5
mailing list