This commit was generated by cvs2svn to track changes on a CVS vendor
[unix-history] / sys / netns / spp_debug.c
index 3bbc72a..4bfc370 100644 (file)
@@ -31,7 +31,7 @@
  * SUCH DAMAGE.
  *
  *     from: @(#)spp_debug.c   7.7 (Berkeley) 6/28/90
  * SUCH DAMAGE.
  *
  *     from: @(#)spp_debug.c   7.7 (Berkeley) 6/28/90
- *     $Id$
+ *     $Id: spp_debug.c,v 1.4 1993/11/25 01:36:35 wollman Exp $
  */
 
 #include "param.h"
  */
 
 #include "param.h"
 #define        SANAMES
 #include "spp_debug.h"
 
 #define        SANAMES
 #include "spp_debug.h"
 
+struct         spp_debug spp_debug[SPP_NDEBUG];
+int    spp_debx;
+
 int    sppconsdebug = 0;
 /*
  * spp debug routines
  */
 int    sppconsdebug = 0;
 /*
  * spp debug routines
  */
+void
 spp_trace(act, ostate, sp, si, req)
        short act;
        u_char ostate;
 spp_trace(act, ostate, sp, si, req)
        short act;
        u_char ostate;
@@ -130,7 +134,7 @@ spp_trace(act, ostate, sp, si, req)
                if (flags) {
                        char *cp = "<";
 #ifndef lint
                if (flags) {
                        char *cp = "<";
 #ifndef lint
-#define pf(f) { if (flags&SP_/**/f) { printf("%s%s", cp, "f"); cp = ","; } }
+#define pf(f) { if (flags& SP_##f) { printf("%s" #f, cp); cp = ","; } }
                        pf(SP); pf(SA); pf(OB); pf(EM);
 #else
                        cp = cp;
                        pf(SP); pf(SA); pf(OB); pf(EM);
 #else
                        cp = cp;
@@ -138,7 +142,7 @@ spp_trace(act, ostate, sp, si, req)
                        printf(">");
                }
 #ifndef lint
                        printf(">");
                }
 #ifndef lint
-#define p2(f)  { printf("%s = %x, ", "f", si->si_/**/f); }
+#define p2(f)  { printf("%s = %x, ", "f", si->si_##f); }
                p2(sid);p2(did);p2(dt);p2(pt);
 #endif
                ns_printhost(&si->si_sna);
                p2(sid);p2(did);p2(dt);p2(pt);
 #endif
                ns_printhost(&si->si_sna);
@@ -163,7 +167,7 @@ spp_trace(act, ostate, sp, si, req)
        if (sp == 0)
                return;
 #ifndef lint
        if (sp == 0)
                return;
 #ifndef lint
-#define p3(f)  { printf("%s = %x, ", "f", sp->s_/**/f); }
+#define p3(f)  { printf("%s = %x, ", "f", sp->s_##f); }
        printf("\t"); p3(rack);p3(ralo);p3(smax);p3(flags); printf("\n");
 #endif
 #endif
        printf("\t"); p3(rack);p3(ralo);p3(smax);p3(flags); printf("\n");
 #endif
 #endif