]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
repart: log fixes
authorLennart Poettering <lennart@poettering.net>
Wed, 29 Jul 2020 17:20:39 +0000 (19:20 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 30 Jul 2020 13:17:08 +0000 (15:17 +0200)
src/partition/repart.c

index 69df7515635bc6b0e23fdd25a8c3ea32303f62ab..2e5f5d13455d63ad5980863e7c4d2537a57a1cd6 100644 (file)
@@ -952,7 +952,7 @@ static int config_parse_weight(
         }
 
         if (v > 1000U*1000U) {
         }
 
         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;
         }
                            "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)
 
         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)
                                   "Failed to parse size value: %s", rvalue);
 
         if (ltype > 0)