]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: non-functional fixup
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 23 Aug 2017 11:08:02 +0000 (13:08 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 24 Aug 2017 10:45:52 +0000 (12:45 +0200)
Surfaced while building lxc-2.0.8 on e2k architecture with lcc,
looks like its -Wall is more pedantic than gcc's:

lcc: "conf.c", line 1514: error: unrecognized character escape sequence
          [-Werror]
        DEBUG("created directory for console and tty devices at \%s\"", path);
                                                                ^
 in expansion of macro "DEBUG" at line 1514

Another byte is a leading whitespace fix while at that.

Signed-off-by: Michael Shigorin <mike@altlinux.org>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c

index 380624a9c79cce7be73e2bb654d925dbc94f1ddc..8f58ef541afff315ab0352ef023b2017297bc22f 100644 (file)
@@ -1520,7 +1520,7 @@ static int lxc_setup_ttydir_console(const struct lxc_rootfs *rootfs,
                SYSERROR("failed with errno %d to create %s", errno, path);
                return -errno;
        }
-       DEBUG("created directory for console and tty devices at \%s\"", path);
+       DEBUG("Created directory for console and tty devices at \"%s\"", path);
 
        ret = snprintf(lxcpath, sizeof(lxcpath), "%s/dev/%s/console", rootfs->mount, ttydir);
        if (ret < 0 || (size_t)ret >= sizeof(lxcpath))