From: Adam Dickmeiss Date: Wed, 4 Oct 2006 07:32:36 +0000 (+0000) Subject: tstlog uses -r instead of -s o control log file max X-Git-Tag: YAZ.2.1.34~3 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=52ef22373a88e2cc18e515610a40b3cb4e0b7549;hp=99d342b33ff48e94f97d631b127279f2face6124 tstlog uses -r instead of -s o control log file max --- diff --git a/test/tstlog.c b/test/tstlog.c index e93a22e..96cd95b 100644 --- a/test/tstlog.c +++ b/test/tstlog.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: tstlog.c,v 1.10 2006-03-21 12:54:02 adam Exp $ + * $Id: tstlog.c,v 1.11 2006-10-04 07:32:36 adam Exp $ * */ #include @@ -27,11 +27,11 @@ int main(int argc, char **argv) int number = 1; unsigned int wait_between_log = 0; - while ((ret = options("f:v:l:m:n:s:w:Hh", argv, argc, &arg)) != -2) + while ((ret = options("f:v:l:m:n:r:w:Hh", argv, argc, &arg)) != -2) { switch (ret) { - case 's': + case 'r': yaz_log_init_max_size(atoi(arg)); break; case 'f': @@ -72,7 +72,7 @@ int main(int argc, char **argv) default: fprintf(stderr, "tstlog. Bad option\n"); fprintf(stderr, "tstlog [-f logformat] [-v level] [-l file] " - "[-m module] [-w sec] [-s max] [-n num] [-H] msg ..\n"); + "[-m module] [-w sec] [-r max] [-n num] [-H] msg ..\n"); exit(1); } }