facilities in syslog
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Wed, 18 Sep 1985 09:36:12 +0000 (01:36 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Wed, 18 Sep 1985 09:36:12 +0000 (01:36 -0800)
SCCS-vsn: sys/kern/subr_prf.c 6.9
SCCS-vsn: sys/ufs/ffs/ffs_alloc.c 6.16
SCCS-vsn: sys/ufs/lfs/lfs_alloc.c 6.16
SCCS-vsn: sys/vax/uba/dh.c 6.11
SCCS-vsn: sys/vax/uba/dhu.c 4.4
SCCS-vsn: sys/vax/uba/dmf.c 6.10
SCCS-vsn: sys/vax/uba/dz.c 6.9
SCCS-vsn: sys/vax/mba/hp.c 6.14
SCCS-vsn: sys/vax/uba/idc.c 6.10

usr/src/sys/kern/subr_prf.c
usr/src/sys/ufs/ffs/ffs_alloc.c
usr/src/sys/ufs/lfs/lfs_alloc.c
usr/src/sys/vax/mba/hp.c
usr/src/sys/vax/uba/dh.c
usr/src/sys/vax/uba/dhu.c
usr/src/sys/vax/uba/dmf.c
usr/src/sys/vax/uba/dz.c
usr/src/sys/vax/uba/idc.c

index aff8e0a..912aca7 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)subr_prf.c  6.8 (Berkeley) %G%
+ *     @(#)subr_prf.c  6.9 (Berkeley) %G%
  */
 
 #include "param.h"
  */
 
 #include "param.h"
@@ -242,7 +242,7 @@ tablefull(tab)
        char *tab;
 {
 
        char *tab;
 {
 
-       log(KERN_FAIL, "%s: table is full\n", tab);
+       log(LOG_ERR, "%s: table is full\n", tab);
 }
 
 /*
 }
 
 /*
index 410eff5..1d05bd8 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)ffs_alloc.c 6.15 (Berkeley) %G%
+ *     @(#)ffs_alloc.c 6.16 (Berkeley) %G%
  */
 
 #include "param.h"
  */
 
 #include "param.h"
@@ -981,5 +981,5 @@ fserr(fs, cp)
        char *cp;
 {
 
        char *cp;
 {
 
-       log(KERN_FAIL, "%s: %s\n", fs->fs_fsmnt, cp);
+       log(LOG_ERR, "%s: %s\n", fs->fs_fsmnt, cp);
 }
 }
index 29f8353..6012a43 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)lfs_alloc.c 6.15 (Berkeley) %G%
+ *     @(#)lfs_alloc.c 6.16 (Berkeley) %G%
  */
 
 #include "param.h"
  */
 
 #include "param.h"
@@ -981,5 +981,5 @@ fserr(fs, cp)
        char *cp;
 {
 
        char *cp;
 {
 
-       log(KERN_FAIL, "%s: %s\n", fs->fs_fsmnt, cp);
+       log(LOG_ERR, "%s: %s\n", fs->fs_fsmnt, cp);
 }
 }
index b9d9683..b54b632 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)hp.c        6.13 (Berkeley) %G%
+ *     @(#)hp.c        6.14 (Berkeley) %G%
  */
 
 #ifdef HPDEBUG
  */
 
 #ifdef HPDEBUG
@@ -612,7 +612,7 @@ hpdtint(mi, mbsr)
                        er2 &= ~HPER2_BSE;
                }
                if (er1 & HPER1_WLE) {
                        er2 &= ~HPER2_BSE;
                }
                if (er1 & HPER1_WLE) {
-                       log(KERN_RECOV, "hp%d: write locked\n",
+                       log(LOG_WARNING, "hp%d: write locked\n",
                            hpunit(bp->b_dev));
                        bp->b_flags |= B_ERROR;
                } else if (sc->sc_hdr) {
                            hpunit(bp->b_dev));
                        bp->b_flags |= B_ERROR;
                } else if (sc->sc_hdr) {
@@ -829,7 +829,7 @@ hpecc(mi, flag)
                bn--;
                if (bp->b_flags & B_BAD)
                        bn = sc->sc_badbn;
                bn--;
                if (bp->b_flags & B_BAD)
                        bn = sc->sc_badbn;
-               log(KERN_RECOV, "hp%d%c: soft ecc sn%d\n", hpunit(bp->b_dev),
+               log(LOG_WARNING, "hp%d%c: soft ecc sn%d\n", hpunit(bp->b_dev),
                    'a'+(minor(bp->b_dev)&07), bn);
                mask = MASKREG(rp->hpec2);
                i = MASKREG(rp->hpec1) - 1;             /* -1 makes 0 origin */
                    'a'+(minor(bp->b_dev)&07), bn);
                mask = MASKREG(rp->hpec2);
                i = MASKREG(rp->hpec1) - 1;             /* -1 makes 0 origin */
index 606a0a6..893ba14 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)dh.c        6.10 (Berkeley) %G%
+ *     @(#)dh.c        6.11 (Berkeley) %G%
  */
 
 #include "dh.h"
  */
 
 #include "dh.h"
@@ -310,7 +310,7 @@ dhrint(dh)
                         || (tp->t_flags&(EVENP|ODDP))==ODDP )
                                continue;
                if ((c & DH_DO) && overrun == 0) {
                         || (tp->t_flags&(EVENP|ODDP))==ODDP )
                                continue;
                if ((c & DH_DO) && overrun == 0) {
-                       log(KERN_RECOV, "dh%d: silo overflow\n", dh);
+                       log(LOG_WARNING, "dh%d: silo overflow\n", dh);
                        overrun = 1;
                }
                if (c & DH_FE)
                        overrun = 1;
                }
                if (c & DH_FE)
index d192d0c..3f97736 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)dhu.c       4.3 (Berkeley) %G%
+ *     @(#)dhu.c       4.4 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -364,7 +364,7 @@ dhurint(dhu)
                            (tp->t_flags&(EVENP|ODDP)) == ODDP)
                                continue;
                if ((c & DHU_RB_DO) && overrun == 0) {
                            (tp->t_flags&(EVENP|ODDP)) == ODDP)
                                continue;
                if ((c & DHU_RB_DO) && overrun == 0) {
-                       log(KERN_RECOV, "dhu%d: silo overflow\n", dhu);
+                       log(LOG_WARNING, "dhu%d: silo overflow\n", dhu);
                        overrun = 1;
                }
                if (c & DHU_RB_FE)
                        overrun = 1;
                }
                if (c & DHU_RB_FE)
index 298ed75..62daf14 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)dmf.c       6.9 (Berkeley) %G%
+ *     @(#)dmf.c       6.10 (Berkeley) %G%
  */
 
 #include "dmf.h"
  */
 
 #include "dmf.h"
@@ -392,7 +392,7 @@ dmfrint(dmf)
                                || (tp->t_flags&(EVENP|ODDP))==ODDP )
                                        continue;
                        if ((c & DMF_DO) && overrun == 0) {
                                || (tp->t_flags&(EVENP|ODDP))==ODDP )
                                        continue;
                        if ((c & DMF_DO) && overrun == 0) {
-                               log(KERN_RECOV, "dmf%d: silo overflow\n", dmf);
+                               log(LOG_WARNING, "dmf%d: silo overflow\n", dmf);
                                overrun = 1;
                        }
                        if (c & DMF_FE)
                                overrun = 1;
                        }
                        if (c & DMF_FE)
index 0a11ff4..9731563 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)dz.c        6.8 (Berkeley) %G%
+ *     @(#)dz.c        6.9 (Berkeley) %G%
  */
 
 #include "dz.h"
  */
 
 #include "dz.h"
@@ -270,7 +270,7 @@ dzrint(dz)
                        else
                                c = tp->t_intrc;
                if (c&DZ_DO && overrun == 0) {
                        else
                                c = tp->t_intrc;
                if (c&DZ_DO && overrun == 0) {
-                       log(KERN_RECOV, "dz%d,%d: silo overflow\n", dz, (c>>8)&7);
+                       log(LOG_WARNING, "dz%d,%d: silo overflow\n", dz, (c>>8)&7);
                        overrun = 1;
                }
                if (c&DZ_PE)    
                        overrun = 1;
                }
                if (c&DZ_PE)    
index 12f6e86..8800f81 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)idc.c       6.9 (Berkeley) %G%
+ *     @(#)idc.c       6.10 (Berkeley) %G%
  */
 
 #include "rb.h"
  */
 
 #include "rb.h"
@@ -711,7 +711,7 @@ idcecc(ui)
        tn = idc_softc.sc_trk;
        sn = idc_softc.sc_sect;
        um->um_tab.b_active = 1;        /* Either complete or continuing... */
        tn = idc_softc.sc_trk;
        sn = idc_softc.sc_sect;
        um->um_tab.b_active = 1;        /* Either complete or continuing... */
-       log(KERN_RECOV, "rb%d%c: soft ecc sn%d\n", idcunit(bp->b_dev),
+       log(LOG_WARNING, "rb%d%c: soft ecc sn%d\n", idcunit(bp->b_dev),
            'a'+(minor(bp->b_dev)&07),
            (cn*st->ntrak + tn) * st->nsect + sn + npf);
        mask = idc->idceccpat;
            'a'+(minor(bp->b_dev)&07),
            (cn*st->ntrak + tn) * st->nsect + sn + npf);
        mask = idc->idceccpat;