]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix diskd debugging to print the correct unlink function name, either
authorwessels <>
Tue, 9 May 2006 05:05:45 +0000 (05:05 +0000)
committerwessels <>
Tue, 9 May 2006 05:05:45 +0000 (05:05 +0000)
unlink or truncate.

src/DiskIO/DiskDaemon/diskd.cc

index 9eacbb3c2ec3d91cb06c95d8b1549b488b19fb1f..c8275e3b3975e916cc6a32b2105a45bb0002e0f9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: diskd.cc,v 1.3 2005/07/03 15:25:09 serassio Exp $
+ * $Id: diskd.cc,v 1.4 2006/05/08 23:05:45 wessels Exp $
  *
  * DEBUG: section --    External DISKD process implementation.
  * AUTHOR: Harvest Derived
@@ -237,7 +237,14 @@ do_unlink(diomsg * r, int len, const char *buf)
     {
         DEBUG(1) {
             fprintf(stderr, "%d UNLNK id %d %s: ", (int) mypid, r->id, buf);
+#if USE_TRUNCATE
+
             perror("truncate");
+#else
+
+            perror("unlink");
+#endif
+
         }
 
         return -errno;