]> arthur.barton.de Git - netatalk.git/commitdiff
remove a debug quota log output
authordidg <didg>
Mon, 11 Sep 2006 08:05:02 +0000 (08:05 +0000)
committerdidg <didg>
Mon, 11 Sep 2006 08:05:02 +0000 (08:05 +0000)
etc/afpd/quota.c

index 95103f957ccfde9921da9ac86319814cf008b5dc..0eb9050576ac98d1c0c89815a12f03a1a8e5aa22 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: quota.c,v 1.22.8.11.2.2 2006-02-08 04:26:00 didg Exp $
+ * $Id: quota.c,v 1.22.8.11.2.3 2006-09-11 08:05:02 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -46,7 +46,9 @@ char *strchr (), *strrchr ();
 #include "volume.h"
 #include "unix.h"
 
+/* if you want to debug quota
 #define DEBUG_QUOTA 0
+*/
 #define WANT_USER_QUOTA 0
 #define WANT_GROUP_QUOTA 1
 
@@ -717,7 +719,7 @@ const u_int32_t bsize;
        this_bsize = dqblk.bsize;
 #endif
 
-#if DEBUG_QUOTA
+#ifdef DEBUG_QUOTA
         LOG(log_info, logtype_afpd, "after calling getquota in uquota_getvolspace!" );
         LOG(log_info, logtype_afpd, "dqb_ihardlimit: %u", dqblk.dqb_ihardlimit );
         LOG(log_info, logtype_afpd, "dqb_isoftlimit: %u", dqblk.dqb_isoftlimit );
@@ -752,7 +754,7 @@ const u_int32_t bsize;
                          tobytes( dqblk.dqb_curblocks, this_bsize );
        }
 
-#if DEBUG_QUOTA
+#ifdef DEBUG_QUOTA
         LOG(log_info, logtype_afpd, "bfree          : %u", *bfree );
         LOG(log_info, logtype_afpd, "btotal         : %u", *btotal );
         LOG(log_info, logtype_afpd, "bfree          : %uKB", *bfree/1024 );