summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorShawn Landden <shawnlandden@gmail.com>2012-07-24 21:12:43 -0700
committerKay Sievers <kay@vrfy.org>2012-07-25 11:23:57 +0200
commit669241a076108e0483d7d8475beaa506106d077e (patch)
tree33039c6539c1e37c26a9900eddc3fcc2320c617c /src/journal
parent22cfbae09d7791c52901c53b240e28c63eee93d4 (diff)
use "Out of memory." consistantly (or with "\n")
glibc/glib both use "out of memory" consistantly so maybe we should consider that instead of this. Eliminates one string out of a number of binaries. Also fixes extra newline in udev/scsi_id
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/coredump.c2
-rw-r--r--src/journal/journalctl.c2
-rw-r--r--src/journal/journald.c10
3 files changed, 7 insertions, 7 deletions
diff --git a/src/journal/coredump.c b/src/journal/coredump.c
index fcd0d1e625..cfd3a910d9 100644
--- a/src/journal/coredump.c
+++ b/src/journal/coredump.c
@@ -239,7 +239,7 @@ int main(int argc, char* argv[]) {
p = malloc(9 + COREDUMP_MAX);
if (!p) {
- log_error("Out of memory");
+ log_error("Out of memory.");
r = -ENOMEM;
goto finish;
}
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
index e633dd34d7..a9cf9cd957 100644
--- a/src/journal/journalctl.c
+++ b/src/journal/journalctl.c
@@ -256,7 +256,7 @@ static int add_matches(sd_journal *j, char **args) {
t = strappend("_EXE=", path);
if (!t) {
free(p);
- log_error("Out of memory");
+ log_error("Out of memory.");
return -ENOMEM;
}
diff --git a/src/journal/journald.c b/src/journal/journald.c
index 36f9abe47e..ae1fbc4bd4 100644
--- a/src/journal/journald.c
+++ b/src/journal/journald.c
@@ -1270,7 +1270,7 @@ static void process_native_message(
u = MAX((n+N_IOVEC_META_FIELDS+1) * 2U, 4U);
c = realloc(iovec, u * sizeof(struct iovec));
if (!c) {
- log_error("Out of memory");
+ log_error("Out of memory.");
break;
}
@@ -1357,7 +1357,7 @@ static void process_native_message(
k = malloc((e - p) + 1 + l);
if (!k) {
- log_error("Out of memory");
+ log_error("Out of memory.");
break;
}
@@ -1450,7 +1450,7 @@ static void process_native_file(
p = malloc(st.st_size);
if (!p) {
- log_error("Out of memory");
+ log_error("Out of memory.");
return;
}
@@ -1543,7 +1543,7 @@ static int stdout_stream_line(StdoutStream *s, char *p) {
else {
s->identifier = strdup(p);
if (!s->identifier) {
- log_error("Out of memory");
+ log_error("Out of memory.");
return -ENOMEM;
}
}
@@ -1558,7 +1558,7 @@ static int stdout_stream_line(StdoutStream *s, char *p) {
else {
s->unit_id = strdup(p);
if (!s->unit_id) {
- log_error("Out of memory");
+ log_error("Out of memory.");
return -ENOMEM;
}
}