chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
build: colorize gcc only if on tty
[elogind.git]
/
src
/
bootchart
/
bootchart.c
diff --git
a/src/bootchart/bootchart.c
b/src/bootchart/bootchart.c
index c0e176da9b3ca1b3ed3ee40b05c7873eef221242..8ef5ad18a6ac742609fa83b1cd84098e6a77efe1 100644
(file)
--- a/
src/bootchart/bootchart.c
+++ b/
src/bootchart/bootchart.c
@@
-380,8
+380,8
@@
int main(int argc, char *argv[]) {
sampledata = new0(struct list_sample_data, 1);
if (sampledata == NULL) {
- log_
error("Failed to allocate memory for a node: %m"
);
- return
-1
;
+ log_
oom(
);
+ return
EXIT_FAILURE
;
}
sampledata->sampletime = gettime_ns();