From e14ddf1cac12f91685cbd5dac6c5127f8cf87863 Mon Sep 17 00:00:00 2001 From: Michal Schmidt Date: Fri, 8 Mar 2013 12:05:48 +0100 Subject: [PATCH] =?utf8?q?journal:=C2=A0allow=20priority=200=20in=20stdout?= =?utf8?q?=20stream?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Priority 0 is acceptable (it's LOG_EMERG). BTW, I'm not sure why we allow priorities up to 999, but I'm leaving this be for now. http://lists.freedesktop.org/archives/systemd-devel/2013-March/009510.html --- src/journal/journald-stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/journal/journald-stream.c b/src/journal/journald-stream.c index 7b88f747d..54a5b3621 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; } -- 2.30.2