git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
net
/
tipc
/
dbg.c
diff --git
a/net/tipc/dbg.c
b/net/tipc/dbg.c
index
5513065
..
4f4beef
100644
(file)
--- a/
net/tipc/dbg.c
+++ b/
net/tipc/dbg.c
@@
-41,7
+41,7
@@
#define MAX_STRING 512
static char print_string[MAX_STRING];
#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;
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->crs = pb->buf = raw;
pb->size = sz;
- pb->next =
NULL
;
+ pb->next =
0
;
pb->buf[0] = 0;
pb->buf[sz-1] = ~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 = pb->next;
- pb->next =
NULL
;
+ pb->next =
0
;
pb = pb_next;
}
spin_unlock_bh(&print_lock);
pb = pb_next;
}
spin_unlock_bh(&print_lock);