From: David Goulet Date: Wed, 20 Apr 2011 19:56:29 +0000 (-0400) Subject: Minor fix for ERR() call in lttng X-Git-Tag: v2.0-pre1~190 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ebafd2a5241f74a15c0e563af001b8d651962392;p=lttng-tools.git Minor fix for ERR() call in lttng Signed-off-by: David Goulet --- diff --git a/lttng/lttng.c b/lttng/lttng.c index 6cc540922..625855288 100644 --- a/lttng/lttng.c +++ b/lttng/lttng.c @@ -56,14 +56,12 @@ static int process_client_opt(void) /* Connect to the session daemon */ ret = lttng_connect_sessiond(); if (ret < 0) { - ERR("%s", lttng_get_readable_code(ret)); goto end; } if (opt_list_apps) { ret = process_opt_list_apps(); if (ret < 0) { - ERR("%s", lttng_get_readable_code(ret)); goto end; } } @@ -71,6 +69,7 @@ static int process_client_opt(void) return 0; end: + ERR("%s", lttng_get_readable_code(ret)); return ret; }