X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fsave.c;h=4231922ad3f724f5ac36995184efd5c6053e7cdb;hb=a0377dfefe40662ba7d68617bce6ff467114136c;hp=924ddcbcd6bef1f2c4faf43524e60c0a31ce8124;hpb=68c7f6e55254fd6e54d7bb4a6c1316bb77843a6e;p=lttng-tools.git diff --git a/src/bin/lttng/commands/save.c b/src/bin/lttng/commands/save.c index 924ddcbcd..4231922ad 100644 --- a/src/bin/lttng/commands/save.c +++ b/src/bin/lttng/commands/save.c @@ -1,18 +1,8 @@ /* - * Copyright (C) 2013 - Jérémie Galarneau + * Copyright (C) 2013 Jérémie Galarneau * - * 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 @@ -21,12 +11,11 @@ #include #include #include -#include #include #include "../command.h" -#include +#include static char *opt_output_path; static bool opt_force; @@ -59,8 +48,8 @@ static struct poptOption save_opts[] = { static int mi_partial_session(const char *session_name) { int ret; - assert(writer); - assert(session_name); + LTTNG_ASSERT(writer); + LTTNG_ASSERT(session_name); /* Open session element */ ret = mi_lttng_writer_open_element(writer, config_element_session); @@ -86,7 +75,7 @@ end: static int mi_save_print(const char *session_name) { int ret; - assert(writer); + LTTNG_ASSERT(writer); if (opt_save_all) { /* We use a wildcard to represent all sessions */