diff options
author | Jim Meyering <meyering@redhat.com> | 2009-08-17 09:43:18 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-08-17 11:40:24 +0200 |
commit | 9b0ab841856ed7168171f6dceaede88dc9fbb9b2 (patch) | |
tree | 2313deb2f3282c6ebfdc77c61acb32d68cbf598b | |
parent | 29e7b9908ea6a4c2a864955e73d5b1d7d64f1fc8 (diff) | |
download | libguestfs-9b0ab841856ed7168171f6dceaede88dc9fbb9b2.tar.gz libguestfs-9b0ab841856ed7168171f6dceaede88dc9fbb9b2.tar.xz libguestfs-9b0ab841856ed7168171f6dceaede88dc9fbb9b2.zip |
sfdisk.c, fallocate.c: use a string literal as format
* daemon/fallocate.c (do_fallocate): Format was not a string literal.
* daemon/sfdisk.c (sfdisk): Likewise.
-rw-r--r-- | daemon/fallocate.c | 2 | ||||
-rw-r--r-- | daemon/sfdisk.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/daemon/fallocate.c b/daemon/fallocate.c index eb841457..20a75e67 100644 --- a/daemon/fallocate.c +++ b/daemon/fallocate.c @@ -36,7 +36,7 @@ do_fallocate (const char *path, int len) fd = open (path, O_WRONLY | O_CREAT | O_TRUNC | O_NOCTTY, 0666); CHROOT_OUT; if (fd == -1) { - reply_with_perror (path); + reply_with_perror ("failed to open %s", path); return -1; } diff --git a/daemon/sfdisk.c b/daemon/sfdisk.c index 6d49387a..b68b9f67 100644 --- a/daemon/sfdisk.c +++ b/daemon/sfdisk.c @@ -72,13 +72,13 @@ sfdisk (const char *device, int n, int cyls, int heads, int sectors, fp = popen (buf, "w"); if (fp == NULL) { - reply_with_perror (buf); + reply_with_perror ("failed to open pipe: %s", buf); return -1; } for (i = 0; lines[i] != NULL; ++i) { if (fprintf (fp, "%s\n", lines[i]) < 0) { - reply_with_perror (buf); + reply_with_perror ("failed to write to pipe: %s", buf); pclose (fp); return -1; } |