]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: correct argument comment simplified
authorJelle van der Waa <jvanderwaa@redhat.com>
Wed, 7 May 2025 10:20:34 +0000 (12:20 +0200)
committerJelle van der Waa <jvanderwaa@redhat.com>
Wed, 14 May 2025 09:15:45 +0000 (11:15 +0200)
src/test/test-image-policy.c

index 7134f3d1d07d340248b3b69e86a59bb25e1c3611..c1747f3440a82871ada436a096a77657fd4cddf8 100644 (file)
@@ -10,8 +10,8 @@ static void test_policy(const ImagePolicy *p, const char *name) {
         _cleanup_free_ char *as_string = NULL, *as_string_simplified = NULL;
         _cleanup_free_ ImagePolicy *parsed = NULL;
 
-        assert_se(image_policy_to_string(p, /* simplified= */ false, &as_string) >= 0);
-        assert_se(image_policy_to_string(p, /* simplified= */ true, &as_string_simplified) >= 0);
+        assert_se(image_policy_to_string(p, /* simplify= */ false, &as_string) >= 0);
+        assert_se(image_policy_to_string(p, /* simplify= */ true, &as_string_simplified) >= 0);
 
         printf("%s%s", ansi_underline(), name);
 
@@ -40,17 +40,17 @@ static void test_policy(const ImagePolicy *p, const char *name) {
                 if (f < 0) {
                         f = image_policy_get_exhaustively(p, d);
                         assert_se(f >= 0);
-                        assert_se(partition_policy_flags_to_string(f, /* simplified= */ true, &k) >= 0);
+                        assert_se(partition_policy_flags_to_string(f, /* simplify= */ true, &k) >= 0);
 
                         printf("%s\t%s → n/a (exhaustively: %s)%s\n", ansi_grey(), partition_designator_to_string(d), k, ansi_normal());
                 } else {
-                        assert_se(partition_policy_flags_to_string(f, /* simplified= */ true, &k) >= 0);
+                        assert_se(partition_policy_flags_to_string(f, /* simplify= */ true, &k) >= 0);
                         printf("\t%s → %s\n", partition_designator_to_string(d), k);
                 }
         }
 
         _cleanup_free_ char *w = NULL;
-        assert_se(partition_policy_flags_to_string(image_policy_default(p), /* simplified= */ true, &w) >= 0);
+        assert_se(partition_policy_flags_to_string(image_policy_default(p), /* simplify= */ true, &w) >= 0);
         printf("\tdefault → %s\n", w);
 }