summaryrefslogtreecommitdiffstats
path: root/daemon/swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/swap.c')
-rw-r--r--daemon/swap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/swap.c b/daemon/swap.c
index 2d3d9ff4..fbeb895f 100644
--- a/daemon/swap.c
+++ b/daemon/swap.c
@@ -58,7 +58,7 @@ mkswap (const char *device, const char *flag, const char *value)
r = command (NULL, &err, "/sbin/mkswap", "-f", flag, value, device, NULL);
if (r == -1) {
- reply_with_error ("mkswap: %s", err);
+ reply_with_error ("%s", err);
free (err);
return -1;
}
@@ -115,7 +115,7 @@ swaponoff (const char *cmd, const char *flag, const char *value)
r = command (NULL, &err, cmd, flag, value, NULL);
if (r == -1) {
- reply_with_error ("%s: %s: %s", cmd, value, err);
+ reply_with_error ("%s: %s", value, err);
free (err);
return -1;
}