summaryrefslogtreecommitdiffstats
path: root/ctdb/tcp/tcp_io.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-02-04 20:07:15 +1100
committerAndrew Tridgell <tridge@samba.org>2008-02-04 20:07:15 +1100
commitf6e53f433bf8e184ffc281f14c4eacda1ffc935c (patch)
tree577c389c61b4a0d7b51fbf0a0294cbd84bc79f48 /ctdb/tcp/tcp_io.c
parent9d6ac0cf559535e8ac7082125692afd287b353e5 (diff)
downloadsamba-f6e53f433bf8e184ffc281f14c4eacda1ffc935c.tar.gz
samba-f6e53f433bf8e184ffc281f14c4eacda1ffc935c.tar.xz
samba-f6e53f433bf8e184ffc281f14c4eacda1ffc935c.zip
merge from ronnie
(This used to be ctdb commit e7b57d38cf7255be823a223cf15b7526285b4f1c)
Diffstat (limited to 'ctdb/tcp/tcp_io.c')
-rw-r--r--ctdb/tcp/tcp_io.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ctdb/tcp/tcp_io.c b/ctdb/tcp/tcp_io.c
index c10afb3425..10711d1ea1 100644
--- a/ctdb/tcp/tcp_io.c
+++ b/ctdb/tcp/tcp_io.c
@@ -41,31 +41,31 @@ void ctdb_tcp_read_cb(uint8_t *data, size_t cnt, void *args)
}
if (cnt < sizeof(*hdr)) {
- DEBUG(0,(__location__ " Bad packet length %u\n", (unsigned)cnt));
+ DEBUG(DEBUG_ALERT,(__location__ " Bad packet length %u\n", (unsigned)cnt));
goto failed;
}
if (cnt & (CTDB_TCP_ALIGNMENT-1)) {
- DEBUG(0,(__location__ " Length 0x%x not multiple of alignment\n",
+ DEBUG(DEBUG_ALERT,(__location__ " Length 0x%x not multiple of alignment\n",
(unsigned)cnt));
goto failed;
}
if (cnt != hdr->length) {
- DEBUG(0,(__location__ " Bad header length %u expected %u\n",
+ DEBUG(DEBUG_ALERT,(__location__ " Bad header length %u expected %u\n",
(unsigned)hdr->length, (unsigned)cnt));
goto failed;
}
if (hdr->ctdb_magic != CTDB_MAGIC) {
- DEBUG(0,(__location__ " Non CTDB packet 0x%x rejected\n",
+ DEBUG(DEBUG_ALERT,(__location__ " Non CTDB packet 0x%x rejected\n",
hdr->ctdb_magic));
goto failed;
}
if (hdr->ctdb_version != CTDB_VERSION) {
- DEBUG(0, (__location__ " Bad CTDB version 0x%x rejected\n",
+ DEBUG(DEBUG_ALERT, (__location__ " Bad CTDB version 0x%x rejected\n",
hdr->ctdb_version));
goto failed;
}