]> git.donarmstrong.com Git - unscd.git/commitdiff
Only indicate that the cache is being invalidated when in debug mode
authordon <don@8f7917da-ec0b-0410-a553-b9b0e350d17e>
Mon, 30 May 2011 15:57:39 +0000 (15:57 +0000)
committerdon <don@8f7917da-ec0b-0410-a553-b9b0e350d17e>
Mon, 30 May 2011 15:57:39 +0000 (15:57 +0000)
(Closes: #622230)

debian/changelog
nscd.c

index ea0685e9cc4b9d064ef26545c7077a1692e8aa63..0edf035e4d439ff6701e2df3d7c8890acc39888c 100644 (file)
@@ -1,3 +1,10 @@
+unscd (0.47-3) unstable; urgency=low
+
+  * Only indicate that the cache is being invalidated when in debug mode
+    (Closes: #622230)
+
+ -- Don Armstrong <don@debian.org>  Mon, 30 May 2011 08:56:33 -0700
+
 unscd (0.47-2) unstable; urgency=low
 
   * Remove the Provides: nscd as a workaround for (Closes: #606588) to
diff --git a/nscd.c b/nscd.c
index 29494ff89771f365b8c6dd76fe5971ab44c4cf50..1af5b7a3ae119a220691eafceaf244afb6706ce5 100644 (file)
--- a/nscd.c
+++ b/nscd.c
@@ -2389,7 +2389,9 @@ static void special_op(const char *arg)
                reqdata.req.key_len = arg_len;
                memcpy(reqdata.arg, arg, arg_len);
                xfull_write(sock, &reqdata, arg_len + sizeof(ureq));
-               printf("sent invalidate(%s) request, exiting\n", arg);
+               if (debug) {
+                 printf("sent invalidate(%s) request, exiting\n", arg);
+               }
        }
        exit(0);
 }