From: Christian Brauner Date: Wed, 23 Aug 2017 11:08:02 +0000 (+0200) Subject: conf: non-functional fixup X-Git-Tag: lxc-2.0.9~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a192ef633908ee8a95b07e01b6e5f7e9fd4d37e2;p=thirdparty%2Flxc.git conf: non-functional fixup 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 Acked-by: Christian Brauner --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 2924585f0..0d704b9d7 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -1454,7 +1454,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))