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: 's avatarMichael Shigorin <mike@altlinux.org> Acked-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 1a0e70ac
...@@ -1520,7 +1520,7 @@ static int lxc_setup_ttydir_console(const struct lxc_rootfs *rootfs, ...@@ -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); SYSERROR("failed with errno %d to create %s", errno, path);
return -errno; 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); ret = snprintf(lxcpath, sizeof(lxcpath), "%s/dev/%s/console", rootfs->mount, ttydir);
if (ret < 0 || (size_t)ret >= sizeof(lxcpath)) if (ret < 0 || (size_t)ret >= sizeof(lxcpath))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment