From: Adam Dickmeiss Date: Tue, 5 Jun 2007 06:22:19 +0000 (+0000) Subject: Exercise yaz_log_init_prefix X-Git-Tag: YAZ.3.0.10~56 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=c6c31633806f578abea7a1c58e9b837c42150709;p=yaz-moved-to-github.git Exercise yaz_log_init_prefix --- diff --git a/test/tstlog.c b/test/tstlog.c index 5364b63..64322a0 100644 --- a/test/tstlog.c +++ b/test/tstlog.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: tstlog.c,v 1.12 2007-01-03 08:42:16 adam Exp $ + * $Id: tstlog.c,v 1.13 2007-06-05 06:22:19 adam Exp $ * */ #include @@ -27,7 +27,7 @@ int main(int argc, char **argv) int number = 1; unsigned int wait_between_log = 0; - while ((ret = options("f:v:l:m:n:r:w:Hh", argv, argc, &arg)) != -2) + while ((ret = options("f:p:v:l:m:n:r:w:Hh", argv, argc, &arg)) != -2) { switch (ret) { @@ -37,6 +37,9 @@ int main(int argc, char **argv) case 'f': yaz_log_time_format(arg); break; + case 'p': + yaz_log_init_prefix(arg); + break; case 'v': yaz_log_init_level(yaz_log_mask_str(arg)); break;