]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Convert debug statements to debugs
authorserassio <>
Sun, 17 Feb 2008 18:36:13 +0000 (18:36 +0000)
committerserassio <>
Sun, 17 Feb 2008 18:36:13 +0000 (18:36 +0000)
src/WinSvc.cc

index 9b75cf5dbd44688ad80ed0d1c2ae9332676b4e51..cb7c9aa7a502ee38ee8371d1766730c019ab5d9a 100755 (executable)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: WinSvc.cc,v 1.4 2008/01/24 19:20:43 serassio Exp $
+ * $Id: WinSvc.cc,v 1.5 2008/02/17 11:36:13 serassio Exp $
  *
  * Windows support
  * AUTHOR: Guido Serassio <serassio@squid-cache.org>
@@ -444,10 +444,10 @@ WIN32_IpAddrChangeMonitor(LPVOID lpParam)
     while (1) {
        Result = NotifyAddrChange(NULL, NULL);
        if (Result != NO_ERROR) {
-           debug(1, 1) ("NotifyAddrChange error %ld\n", Result);
+           debugs(1, 1, "NotifyAddrChange error " << Result);
            return 1;
        }
-       debug(1, 1) ("Notification of IP address change received, requesting Squid reconfiguration ...\n");
+       debugs(1, 1, "Notification of IP address change received, requesting Squid reconfiguration ...");
        reconfigure(SIGHUP);
     }
     return 0;
@@ -465,9 +465,9 @@ WIN32_IpAddrChangeMonitorInit()
        if (NotifyAddrChange_thread == NULL) {
            status = GetLastError();
            NotifyAddrChange_thread = INVALID_HANDLE_VALUE;
-           debug(1, 1) ("Failed to start IP monitor thread.\n");
+           debugs(1, 1, "Failed to start IP monitor thread.");
        } else
-           debug(1, 2) ("Starting IP monitor thread [%li] ...\n", threadID);
+           debugs(1, 2, "Starting IP monitor thread [" << threadID << "] ...");
     }
     return status;
 }