projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: always use sysconf to get the page size
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
save.c
diff --git
a/src/bin/lttng/commands/save.c
b/src/bin/lttng/commands/save.c
index 59cd715682719d24976c81bba173e3c68eda4866..4231922ad3f724f5ac36995184efd5c6053e7cdb 100644
(file)
--- a/
src/bin/lttng/commands/save.c
+++ b/
src/bin/lttng/commands/save.c
@@
-11,12
+11,11
@@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <assert.h>
#include <common/mi-lttng.h>
#include "../command.h"
#include <common/mi-lttng.h>
#include "../command.h"
-#include <lttng/
save
.h>
+#include <lttng/
lttng
.h>
static char *opt_output_path;
static bool opt_force;
static char *opt_output_path;
static bool opt_force;
@@
-49,8
+48,8
@@
static struct poptOption save_opts[] = {
static int mi_partial_session(const char *session_name)
{
int ret;
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);
/* Open session element */
ret = mi_lttng_writer_open_element(writer, config_element_session);
@@
-76,7
+75,7
@@
end:
static int mi_save_print(const char *session_name)
{
int ret;
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 */
if (opt_save_all) {
/* We use a wildcard to represent all sessions */
This page took
0.025982 seconds
and
4
git commands to generate.