OSSP CVS Repository

ossp - Check-in [2365]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 2365
Date: 2002-Jul-25 18:28:43 (local)
2002-Jul-25 16:28:43 (UTC)
User:rse
Branch:
Comment: fix default log mask
Tickets:
Inspections:
Files:
ossp-pkg/fsl/fsl.c      1.29 -> 1.30     4 inserted, 3 deleted

ossp-pkg/fsl/fsl.c 1.29 -> 1.30

--- fsl.c        2002/07/25 15:21:32     1.29
+++ fsl.c        2002/07/25 16:28:43     1.30
@@ -184,7 +184,7 @@
     NULL,
     NULL,
     NULL,
-    LOG_PRIMASK,
+    LOG_UPTO(LOG_DEBUG),
     0,
     FALSE
 };
@@ -615,9 +615,10 @@
         free(ctx.levelmap);
         ctx.levelmap = NULL;
     }
-    ctx.maskpri = LOG_PRIMASK;
+    ctx.maskpri = LOG_UPTO(LOG_DEBUG);
     ctx.logopt = 0;
     ctx.delayopen = FALSE;
+    return;
 }
 
 int setlogmask(int maskpri)
@@ -672,7 +673,7 @@
 
     /* strip off facility */
     priority &= LOG_PRIMASK;
-    fsldebug(L2_LEVEL_DEBUG, "prioriy  =0x%.8lx, ctx.maskpri=0x%.8lx  ", (unsigned long)priority, (unsigned long)ctx.maskpri);
+    fsldebug(L2_LEVEL_DEBUG, "priority =0x%.8lx, ctx.maskpri=0x%.8lx  ", (unsigned long)priority, (unsigned long)ctx.maskpri);
 
     /* check against maskpri */
     if ((LOG_MASK(priority) & ctx.maskpri) == 0) {

CVSTrac 2.0.1