From: Lennart Poettering Date: Mon, 11 Mar 2013 14:10:29 +0000 (+0100) Subject: journald: allow priority of 999, too X-Git-Tag: v199~234 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=41891700e02daf0cab9e86908c76ac6f411bbd57 journald: allow priority of 999, too --- diff --git a/src/journal/journald-stream.c b/src/journal/journald-stream.c index 54a5b3621..bdc2f49ef 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; }