mount: fix log format string and indentation
authorDaniel Golle <daniel@makrotopia.org>
Thu, 15 Oct 2020 23:33:25 +0000 (00:33 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 16 Oct 2020 00:48:45 +0000 (01:48 +0100)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libfstools/mount.c

index d61a80f32a03f7d7f09543599e7a4b3f1be46b35..c72c26d59704ab137ac9b2a080f4795d03fa7492 100644 (file)
@@ -121,10 +121,10 @@ fopivot(char *rw_root, char *ro_root)
        mkdir(workdir, 0755);
 
        if (stat(upgrade, &st) == 0)
-           rename(upgrade, upgrade_dest);
+               rename(upgrade, upgrade_dest);
 
        if (mount(overlay, "/mnt", "overlay", MS_NOATIME, mount_options)) {
-               ULOG_ERR("mount failed: %s, options %m\n", mount_options);
+               ULOG_ERR("mount failed: %m, options %s\n", mount_options);
                return -1;
        }