projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: Replace all perror() uses by the PERROR macro
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
list.c
diff --git
a/src/bin/lttng/commands/list.c
b/src/bin/lttng/commands/list.c
index 14e390a030445c690f03bae266ca16bb1dead774..aaa8f47a9ec4b157e44ca68fe9b4e0a9d712f161 100644
(file)
--- a/
src/bin/lttng/commands/list.c
+++ b/
src/bin/lttng/commands/list.c
@@
-131,12
+131,12
@@
static char *get_cmdline_by_pid(pid_t pid)
/* Caller must free() *cmdline */
cmdline = zmalloc(PATH_MAX);
if (!cmdline) {
/* Caller must free() *cmdline */
cmdline = zmalloc(PATH_MAX);
if (!cmdline) {
-
perror
("malloc cmdline");
+
PERROR
("malloc cmdline");
goto end;
}
ret = fread(cmdline, 1, PATH_MAX, fp);
if (ret < 0) {
goto end;
}
ret = fread(cmdline, 1, PATH_MAX, fp);
if (ret < 0) {
-
perror
("fread proc list");
+
PERROR
("fread proc list");
}
end:
}
end:
This page took
0.023486 seconds
and
4
git commands to generate.