Docs: relayd: document the lifetime of viewer session trace chunks
[lttng-tools.git] / src / bin / lttng-relayd / tracefile-array.c
index c7a86966fc5d6bff46b41b00a8513b8f82b0e290..996c43e45363ca51bdead1a70323210e21f332ab 100644 (file)
@@ -1,22 +1,11 @@
 /*
- * Copyright (C) 2015 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ * Copyright (C) 2015 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License, version 2 only, as
- * published by the Free Software Foundation.
+ * SPDX-License-Identifier: GPL-2.0-only
  *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 #define _LGPL_SOURCE
-#include <assert.h>
 #include <common/common.h>
 #include <common/utils.h>
 #include <common/defaults.h>
@@ -178,7 +167,7 @@ bool tracefile_array_seq_in_file(struct tracefile_array *tfa,
                 */
                return true;
        }
-       assert(file_index < tfa->count);
+       LTTNG_ASSERT(file_index < tfa->count);
        if (seq == -1ULL) {
                return false;
        }
This page took 0.024488 seconds and 4 git commands to generate.