Fix: nonsensical message printed by lttng track/untrack
[lttng-tools.git] / src / bin / lttng / commands / track-untrack.c
index da515b1a9c1d6b189ddb9bfc89bd667b96012f54..6db4288c59ec471cf181a8429dfa424a0ff75762 100644 (file)
@@ -257,8 +257,14 @@ enum cmd_error_code track_untrack_pid(enum cmd_type cmd_type, const char *cmd_st
                                break;
                        }
                } else {
                                break;
                        }
                } else {
-                       MSG("PID %i %sed in session %s",
-                                       pid_list[i], cmd_str, session_name);
+                       if (pid_list[i] != -1) {
+                               MSG("PID %i %sed in session %s",
+                                               pid_list[i], cmd_str,
+                                               session_name);
+                       } else {
+                               MSG("All PIDs %sed in session %s",
+                                               cmd_str, session_name);
+                       }
                        success = 1;
                }
 
                        success = 1;
                }
 
This page took 0.02279 seconds and 4 git commands to generate.