]> err.no Git - linux-2.6/blobdiff - net/tipc/dbg.c
[SCTP]: Verify all the paths to a peer via heartbeat before using them.
[linux-2.6] / net / tipc / dbg.c
index 26ef95d5fe38601611e6d95a4d6248276235b4cb..55130655e1edbe306a484f552c2a20080496cb15 100644 (file)
@@ -41,7 +41,7 @@
 #define MAX_STRING 512
 
 static char print_string[MAX_STRING];
-static spinlock_t print_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(print_lock);
 
 static struct print_buf cons_buf = { NULL, 0, NULL, NULL };
 struct print_buf *TIPC_CONS = &cons_buf;