diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-03-30 11:19:22 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-03-30 11:19:22 +0200 |
commit | b59f8fd65d4f464ce3673439725db1606ec31329 (patch) | |
tree | c088eff1b782635bd43a061a0e7c340494e10a77 /tests/diagtalker.c | |
parent | 5bfa8d2a254e0ead0608b954bdab6dd2a7d9f3e0 (diff) | |
download | rsyslog-b59f8fd65d4f464ce3673439725db1606ec31329.tar.gz rsyslog-b59f8fd65d4f464ce3673439725db1606ec31329.tar.bz2 rsyslog-b59f8fd65d4f464ce3673439725db1606ec31329.zip |
fixed problem in testbench & added new test (not yet integrated)
The test is a setup scenario for this bug tracker:
http://bugzilla.adiscon.com/show_bug.cgi?id=241
Diffstat (limited to 'tests/diagtalker.c')
-rw-r--r-- | tests/diagtalker.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/diagtalker.c b/tests/diagtalker.c index 6a721e47..0d728bda 100644 --- a/tests/diagtalker.c +++ b/tests/diagtalker.c @@ -1,7 +1,7 @@ /* A yet very simple tool to talk to imdiag (this replaces the * previous Java implementation in order to get fewer dependencies). * - * Copyright 2010 Rainer Gerhards and Adiscon GmbH. + * Copyright 2010,2011 Rainer Gerhards and Adiscon GmbH. * * This file is part of rsyslog. * @@ -126,7 +126,7 @@ doProcessing() len = strlen(line); sendCmd(fd, line, len); waitRsp(fd, line, sizeof(line)); - printf("imdiag: %s", line); + printf("imdiag[%d]: %s", targetPort, line); } } @@ -139,7 +139,7 @@ int main(int argc, char *argv[]) int ret = 0; int opt; - while((opt = getopt(argc, argv, "f:t:p:c:C:m:i:I:P:d:n:M:rB")) != -1) { + while((opt = getopt(argc, argv, "t:p:")) != -1) { switch (opt) { case 't': targetIP = optarg; break; |