summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-03-11 15:10:29 +0100
committerLennart Poettering <lennart@poettering.net>2013-03-11 15:10:29 +0100
commit41891700e02daf0cab9e86908c76ac6f411bbd57 (patch)
tree38181a0c05622eaeed8b0e16b74ab5458e9c5ec3 /src
parentf432bb914499e2c28b43f592bb273f0a8664f352 (diff)
journald: allow priority of 999, too
Diffstat (limited to 'src')
-rw-r--r--src/journal/journald-stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald-stream.c b/src/journal/journald-stream.c
index 54a5b3621a..bdc2f49ef4 100644
--- a/src/journal/journald-stream.c
+++ b/src/journal/journald-stream.c
@@ -175,7 +175,7 @@ static int stdout_stream_line(StdoutStream *s, char *p) {
case STDOUT_STREAM_PRIORITY:
r = safe_atoi(p, &s->priority);
- if (r < 0 || s->priority < 0 || s->priority >= 999) {
+ if (r < 0 || s->priority < 0 || s->priority > 999) {
log_warning("Failed to parse log priority line.");
return -EINVAL;
}