From: Lennart Poettering Date: Wed, 29 Jul 2020 17:20:39 +0000 (+0200) Subject: repart: log fixes X-Git-Tag: v246~7 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fsystemd.git;a=commitdiff_plain;h=c8f3d7672c4c7ee7d396548f8850154f23a3d305 repart: log fixes --- diff --git a/src/partition/repart.c b/src/partition/repart.c index 69df7515635..2e5f5d13455 100644 --- a/src/partition/repart.c +++ b/src/partition/repart.c @@ -952,7 +952,7 @@ static int config_parse_weight( } if (v > 1000U*1000U) { - log_syntax(unit, LOG_WARNING, filename, line, r, + log_syntax(unit, LOG_WARNING, filename, line, 0, "Weight needs to be in range 0…10000000, ignoring: %" PRIu32, v); return 0; } @@ -981,7 +981,7 @@ static int config_parse_size4096( r = parse_size(rvalue, 1024, &parsed); if (r < 0) - return log_syntax(unit, LOG_WARNING, filename, line, r, + return log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse size value: %s", rvalue); if (ltype > 0)