X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fsfdisk.c;h=b68b9f67c87ad72c433eb49d70b32fcfd5461289;hp=6d49387ac3529780ef2becd6b5e461bfb26dd996;hb=d15195bad9e50f4d80e84c39100a217a260fc806;hpb=adf20c0c4d9f488d55254f54a79079b9cacbde8d diff --git a/daemon/sfdisk.c b/daemon/sfdisk.c index 6d49387..b68b9f6 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; }