]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: do not use %m format specifier
authorChristian Brauner <christian.brauner@canonical.com>
Sun, 13 Nov 2016 16:10:41 +0000 (17:10 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 18 Nov 2016 01:43:47 +0000 (20:43 -0500)
This is a GNU extension and some libcs might be missing it.

Signed-off-by: Christian Brauner <christian.brauner@canonical.com>
src/lxc/conf.c

index 659893626699cd946fd13d865a8f071b8cdc849d..605e1f91b8dffda353918546f73ba87354cfe94c 100644 (file)
@@ -2514,7 +2514,7 @@ static int setup_mount_entries(const struct lxc_rootfs *rootfs, struct lxc_list
 
        file = tmpfile();
        if (!file) {
-               ERROR("tmpfile error: %m");
+               ERROR("Could not create temporary file: %s.", strerror(errno));
                return -1;
        }