summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-04-11 15:22:18 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2009-04-11 15:22:18 +0200
commitb0295040203d269149fda14a3d6b5b4e2262c5ab (patch)
tree182474cc16b37bf2ab92e9b62c351030a1bc000a /extensions
parent379e25e374252f1eaf3d0d64eff2b8a19154836c (diff)
downloadconntrack-tools-b0295040203d269149fda14a3d6b5b4e2262c5ab.tar.gz
conntrack-tools-b0295040203d269149fda14a3d6b5b4e2262c5ab.zip
conntrack: cleanup error output with `-p tcp --state'
This patch also removes a new line that is not required in the error message. # conntrack -L -p tcp --state CLOS conntrack v0.9.12 (conntrack-tools): Unknown TCP state CLOS > empty line < Try `conntrack -h' or 'conntrack --help' for more information.
Diffstat (limited to 'extensions')
-rw-r--r--extensions/libct_proto_tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libct_proto_tcp.c b/extensions/libct_proto_tcp.c
index e49118b..0ba3a7f 100644
--- a/extensions/libct_proto_tcp.c
+++ b/extensions/libct_proto_tcp.c
@@ -155,7 +155,7 @@ static int parse_options(char c,
}
if (i == TCP_CONNTRACK_MAX)
exit_error(PARAMETER_PROBLEM,
- "Unknown TCP state %s\n", optarg);
+ "unknown TCP state `%s'", optarg);
*flags |= CT_TCP_STATE;
break;
case '8':