diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-03-25 11:31:44 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-03-25 11:31:44 -0400 |
commit | f6e5df58bdd4106c2e9ff718ec7872c48d62fddc (patch) | |
tree | 30f81bb1c80bde4f44e2ad9d3453dc0355338aa3 | |
parent | a9e456b9883559dbef81f2c4fe17a5ebc302441b (diff) |
trace-cmd: Print port on error using %s not %d
On error to connecting to a machine, the port is printed with a %d. But the variable
is of type char * and a %s should be used.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | trace-cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trace-cmd.c b/trace-cmd.c index 153efce..5efb536 100644 --- a/trace-cmd.c +++ b/trace-cmd.c | |||
@@ -1050,7 +1050,7 @@ static void setup_network(void) | |||
1050 | } | 1050 | } |
1051 | 1051 | ||
1052 | if (!rp) | 1052 | if (!rp) |
1053 | die("Can not connect to %s:%d", server, port); | 1053 | die("Can not connect to %s:%s", server, port); |
1054 | 1054 | ||
1055 | freeaddrinfo(result); | 1055 | freeaddrinfo(result); |
1056 | 1056 | ||