Skip to content

Commit

Permalink
conf: non-functional fixup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christian Brauner authored and stgraber committed Aug 29, 2017
1 parent 5d20664 commit a192ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/conf.c
Expand Up @@ -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))
Expand Down

0 comments on commit a192ef6

Please sign in to comment.