linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / net / tipc / dbg.c
index 5513065..4f4beef 100644 (file)
@@ -41,7 +41,7 @@
 #define MAX_STRING 512
 
 static char print_string[MAX_STRING];
-static DEFINE_SPINLOCK(print_lock);
+static spinlock_t print_lock = SPIN_LOCK_UNLOCKED;
 
 static struct print_buf cons_buf = { NULL, 0, NULL, NULL };
 struct print_buf *TIPC_CONS = &cons_buf;
@@ -81,7 +81,7 @@ void tipc_printbuf_init(struct print_buf *pb, char *raw, u32 sz)
 
        pb->crs = pb->buf = raw;
        pb->size = sz;
-       pb->next = NULL;
+       pb->next = 0;
        pb->buf[0] = 0;
        pb->buf[sz-1] = ~0;
 }
@@ -216,7 +216,7 @@ void tipc_printf(struct print_buf *pb, const char *fmt, ...)
                         }
                 }
                pb_next = pb->next;
-               pb->next = NULL;
+               pb->next = 0;
                pb = pb_next;
        }
        spin_unlock_bh(&print_lock);