X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Flist.c;h=a8ed999899d89fa83da56e8dc84fd9a00fbf73a4;hp=b8d0046aa50e4491d82fd92c89c5a3a702b516b6;hb=6223570f28ad0fa3264905079cdefae5ee93c947;hpb=00a620843422e5c972aee0ada2181b811fc81b92 diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c index b8d0046aa..a8ed99989 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -1253,16 +1253,16 @@ static int list_tracker_pids(void) { int enabled, ret; int *pids = NULL; - size_t nr_pids, i; + size_t nr_pids; ret = lttng_list_tracker_pids(handle, &enabled, &pids, &nr_pids); if (ret) { return ret; } - _MSG("PID tracker: [%s]", enabled ? "enabled" : "disabled"); if (enabled) { - _MSG(", pids: ["); + int i; + _MSG("PID tracker: ["); for (i = 0; i < nr_pids; i++) { if (i) { @@ -1270,9 +1270,8 @@ static int list_tracker_pids(void) } _MSG(" %d", pids[i]); } - _MSG(" ]"); + _MSG(" ]\n\n"); } - _MSG("\n\n"); free(pids); return 0; }