]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Summary: Fix bug #475
authorrobertc <>
Thu, 6 Feb 2003 07:16:16 +0000 (07:16 +0000)
committerrobertc <>
Thu, 6 Feb 2003 07:16:16 +0000 (07:16 +0000)
Keywords:

Cast to long unsigned, not long signed for store_swap_size warnings.

src/store.cc

index 3104d5304296b079ae7ba3630f786c4eac84766e..d35617df1f24f3b96b330e68b0bf3cf2ea818306 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store.cc,v 1.556 2003/02/05 10:36:55 robertc Exp $
+ * $Id: store.cc,v 1.557 2003/02/06 00:16:16 robertc Exp $
  *
  * DEBUG: section 20    Storage Manager
  * AUTHOR: Harvest Derived
@@ -956,8 +956,8 @@ storeMaintainSwapSpace(void *datanotused)
     }
     if (store_swap_size > Config.Swap.maxSize) {
        if (squid_curtime - last_warn_time > 10) {
-           debug(20, 0) ("WARNING: Disk space over limit: %ld KB > %ld KB\n",
-               (long int) store_swap_size, (long int) Config.Swap.maxSize);
+           debug(20, 0) ("WARNING: Disk space over limit: %lu KB > %lu KB\n",
+               (long unsigned) store_swap_size, (long unsigned) Config.Swap.maxSize);
            last_warn_time = squid_curtime;
        }
     }