]> arthur.barton.de Git - netatalk.git/commitdiff
changed all LOG messages using logtype_default to use logtype_afpd
authorsibaz <sibaz>
Sun, 29 Sep 2002 23:31:24 +0000 (23:31 +0000)
committersibaz <sibaz>
Sun, 29 Sep 2002 23:31:24 +0000 (23:31 +0000)
etc/afpd/file.c
etc/afpd/mangle.c
etc/afpd/volume.c

index 02a7f9f832499ada219b2bc432c0b104f2f05a80..b22593b05890226d4a85c76fb868583cc98bf713 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: file.c,v 1.59 2002-09-11 03:03:27 didg Exp $
+ * $Id: file.c,v 1.60 2002-09-29 23:31:24 sibaz Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -370,7 +370,7 @@ int getfilparams(struct vol *vol,
     u_int16_t          attrbits = 0;
     int rc;    
 #ifdef DEBUG
-    LOG(log_info, logtype_default, "begin getfilparams:");
+    LOG(log_info, logtype_afpd, "begin getfilparams:");
 #endif /* DEBUG */
 
     upath = mtoupath(vol, path);
index 266036d1be1e4f613d2cc0192c3df0e9a1e09836..5e601cb0d3a3157e8a225e27857b6687e01a6c50 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * $Id: mangle.c,v 1.9 2002-08-14 17:49:13 jmarcus Exp $ 
+ * $Id: mangle.c,v 1.10 2002-09-29 23:31:24 sibaz Exp $ 
  *
  * Copyright (c) 2002. Joe Marcus Clarke (marcus@marcuscom.com)
  * All Rights Reserved.  See COPYRIGHT.
@@ -26,7 +26,7 @@ demangle(const struct vol *vol, char *mfilename) {
        /* Is this really a mangled file? */
        mangle = strstr(mfilename, MANGLE_CHAR);
        if (!mangle) {
-           LOG(log_debug, logtype_default, "demangle: %s is not a mangled filename", mfilename);
+           LOG(log_debug, logtype_afpd, "demangle: %s is not a mangled filename", mfilename);
            return mfilename;
        }
 
@@ -34,7 +34,7 @@ demangle(const struct vol *vol, char *mfilename) {
            ext_len = strlen(ext);
        }
        if (strlen(mangle) != strlen(MANGLE_CHAR) + MANGLE_LENGTH + ext_len) {
-           LOG(log_error, logtype_default, "demangle: %s is not long enough to be a mangled filename", mfilename);
+           LOG(log_error, logtype_afpd, "demangle: %s is not long enough to be a mangled filename", mfilename);
            return mfilename;
        }
 
@@ -42,7 +42,7 @@ demangle(const struct vol *vol, char *mfilename) {
 
        /* No unmangled filename was found. */
        if (filename == NULL) {
-           LOG(log_error, logtype_default, "demangle: Unable to lookup %s in the mangle database", mfilename);
+           LOG(log_error, logtype_afpd, "demangle: Unable to lookup %s in the mangle database", mfilename);
            return mfilename;
        }
 
@@ -93,7 +93,7 @@ mangle(const struct vol *vol, char *filename) {
        }
        else {
            if (++mangle_suffix_int > MAX_MANGLE_SUFFIX_LENGTH) {
-               LOG(log_error, logtype_default, "mangle: Failed to find a free mangle suffix; returning original filename");
+               LOG(log_error, logtype_afpd, "mangle: Failed to find a free mangle suffix; returning original filename");
                return filename;
            }
        }
index eaa74fee3ae3c20f62cea2c9dbf7649d6cb2ae7b..97a60ea2a9aad9d628b9001bcc1225ed58d839a7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: volume.c,v 1.35 2002-09-29 18:44:16 didg Exp $
+ * $Id: volume.c,v 1.36 2002-09-29 23:31:24 sibaz Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -298,6 +298,8 @@ static void volset(struct vol_option *options, char *volname, int vlen,
     char *val;
 
     val = strchr(tmp, ':');
+    LOG(log_debug, logtype_afpd, "Parsing volset %s", val);
+
     if (optionok(tmp, "allow:", val)) {
         if (options[VOLOPT_ALLOW].c_value)
             free(options[VOLOPT_ALLOW].c_value);