summaryrefslogtreecommitdiffstats
path: root/sys-utils/zramctl.c
diff options
context:
space:
mode:
authorSteven Honeyman2014-09-15 22:59:31 +0200
committerSteven Honeyman2014-09-15 22:59:31 +0200
commit0a55b319d4f37f4a89962b56a81d38c71f79ed2f (patch)
tree19b525df59ce75cc0e840ef3ba159bf55c71a64f /sys-utils/zramctl.c
parenttravis: whitelist branches (diff)
downloadkernel-qcow2-util-linux-0a55b319d4f37f4a89962b56a81d38c71f79ed2f.tar.gz
kernel-qcow2-util-linux-0a55b319d4f37f4a89962b56a81d38c71f79ed2f.tar.xz
kernel-qcow2-util-linux-0a55b319d4f37f4a89962b56a81d38c71f79ed2f.zip
zramctl: fixed two -Wformat-security warnings
(they prevented compilation if -Werror=format-security is enabled) Signed-off-by: Steven Honeyman <stevenhoneyman@users.noreply.github.com>
Diffstat (limited to 'sys-utils/zramctl.c')
-rw-r--r--sys-utils/zramctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-utils/zramctl.c b/sys-utils/zramctl.c
index 961dba1d0..786be0628 100644
--- a/sys-utils/zramctl.c
+++ b/sys-utils/zramctl.c
@@ -524,7 +524,7 @@ int main(int argc, char **argv)
if (optind < argc) {
zram = new_zram(argv[optind++]);
if (!zram_exist(zram))
- err(EXIT_FAILURE, zram->devname);
+ err(EXIT_FAILURE, "%s", zram->devname);
}
status(zram);
free_zram(zram);
@@ -560,7 +560,7 @@ int main(int argc, char **argv)
else {
zram = new_zram(argv[optind]);
if (!zram_exist(zram))
- err(EXIT_FAILURE, zram->devname);
+ err(EXIT_FAILURE, "%s", zram->devname);
}
if (zram_set_u64parm(zram, "reset", 1))