From: didg Date: Mon, 11 Sep 2006 08:05:02 +0000 (+0000) Subject: remove a debug quota log output X-Git-Tag: netatalk-2-0-4-beta1~49 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=commitdiff_plain;h=1c9f735eb1264902e7efe77d3aaef62ceb244bd2 remove a debug quota log output --- diff --git a/etc/afpd/quota.c b/etc/afpd/quota.c index 95103f95..0eb90505 100644 --- a/etc/afpd/quota.c +++ b/etc/afpd/quota.c @@ -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 );