X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fstop.c;h=d69da40abe677b63c6ba5860416667ff97b6917c;hb=81663f073dbfb4b61c06a0ceb8ca33c4fc41b1c5;hp=9d211d68b58d4ee37b44244aa3a56012f1f94c9f;hpb=68c7f6e55254fd6e54d7bb4a6c1316bb77843a6e;p=lttng-tools.git diff --git a/src/bin/lttng/commands/stop.c b/src/bin/lttng/commands/stop.c index 9d211d68b..d69da40ab 100644 --- a/src/bin/lttng/commands/stop.c +++ b/src/bin/lttng/commands/stop.c @@ -1,18 +1,8 @@ /* - * Copyright (C) 2011 - David Goulet + * Copyright (C) 2011 David Goulet * - * 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 @@ -23,7 +13,6 @@ #include #include #include -#include #include #include @@ -59,8 +48,8 @@ static struct poptOption long_options[] = { static int mi_print_session(char *session_name, int enabled) { 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); @@ -135,7 +124,7 @@ static int stop_tracing(void) * returned value indicates availability. */ if (ret) { - usleep(DEFAULT_DATA_AVAILABILITY_WAIT_TIME); + usleep(DEFAULT_DATA_AVAILABILITY_WAIT_TIME_US); _MSG("."); fflush(stdout); }