]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sysupdate: fix args order of formatted error
authorMatthias Lisin <6209465+ml-@users.noreply.github.com>
Thu, 19 Dec 2024 10:30:13 +0000 (11:30 +0100)
committerMatthias Lisin <6209465+ml-@users.noreply.github.com>
Thu, 19 Dec 2024 11:39:31 +0000 (12:39 +0100)
src/sysupdate/sysupdate-transfer.c

index 1143c3cf637ac10c8bcb8b6607318d77282f67cf..f0e8ad3b36c6c5ea7fe828cfa43f3f99047daae1 100644 (file)
@@ -596,7 +596,7 @@ int transfer_read_definition(Transfer *t, const char *path, const char **dirs, H
              !IN_SET(t->target.type, RESOURCE_DIRECTORY, RESOURCE_SUBVOLUME)))
                 return log_syntax(NULL, LOG_ERR, path, 1, SYNTHETIC_ERRNO(EINVAL),
                                   "Target type '%s' is incompatible with source type '%s', refusing.",
-                                  resource_type_to_string(t->source.type), resource_type_to_string(t->target.type));
+                                  resource_type_to_string(t->target.type), resource_type_to_string(t->source.type));
 
         if (!t->source.path && !t->source.path_auto)
                 return log_syntax(NULL, LOG_ERR, path, 1, SYNTHETIC_ERRNO(EINVAL),