projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
snapshot.c
diff --git
a/src/bin/lttng/commands/snapshot.c
b/src/bin/lttng/commands/snapshot.c
index 513257a3c43f8bf8785f60b5ec52fddbf1714d36..c37e09a7dbed02eb1c192481c0955544808e4d7b 100644
(file)
--- a/
src/bin/lttng/commands/snapshot.c
+++ b/
src/bin/lttng/commands/snapshot.c
@@
-6,7
+6,6
@@
*/
#define _LGPL_SOURCE
*/
#define _LGPL_SOURCE
-#include <assert.h>
#include <inttypes.h>
#include <popt.h>
#include <stdio.h>
#include <inttypes.h>
#include <popt.h>
#include <stdio.h>
@@
-15,7
+14,6
@@
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
-#include <assert.h>
#include <common/utils.h>
#include <common/mi-lttng.h>
#include <common/utils.h>
#include <common/mi-lttng.h>
@@
-81,7
+79,7
@@
static int count_arguments(const char **argv)
{
int i = 0;
{
int i = 0;
-
assert
(argv);
+
LTTNG_ASSERT
(argv);
while (argv[i] != NULL) {
i++;
while (argv[i] != NULL) {
i++;
@@
-473,7
+471,7
@@
static enum cmd_error_code handle_command(const char **argv)
argc = count_arguments(argv);
/* popt should have passed NULL if no arguments are present. */
argc = count_arguments(argv);
/* popt should have passed NULL if no arguments are present. */
-
assert
(argc > 0);
+
LTTNG_ASSERT
(argc > 0);
cmd = &actions[i];
while (cmd->func != NULL) {
cmd = &actions[i];
while (cmd->func != NULL) {
This page took
0.034633 seconds
and
4
git commands to generate.