mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
ctdbd_conn: Simplify two DEBUGs
msg->hdr.length is a uint32 and we have PRIu32 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
a1309d5321
commit
0b8896d51e
@ -142,20 +142,19 @@ int register_with_ctdbd(struct ctdbd_connection *conn, uint64_t srvid,
|
||||
static int ctdbd_msg_call_back(struct ctdbd_connection *conn,
|
||||
struct ctdb_req_message_old *msg)
|
||||
{
|
||||
size_t msg_len;
|
||||
uint32_t msg_len;
|
||||
size_t i, num_callbacks;
|
||||
|
||||
msg_len = msg->hdr.length;
|
||||
if (msg_len < offsetof(struct ctdb_req_message_old, data)) {
|
||||
DEBUG(10, ("%s: len %u too small\n", __func__,
|
||||
(unsigned)msg_len));
|
||||
DBG_DEBUG("len %"PRIu32" too small\n", msg_len);
|
||||
return 0;
|
||||
}
|
||||
msg_len -= offsetof(struct ctdb_req_message_old, data);
|
||||
|
||||
if (msg_len < msg->datalen) {
|
||||
DEBUG(10, ("%s: msg_len=%u < msg->datalen=%u\n", __func__,
|
||||
(unsigned)msg_len, (unsigned)msg->datalen));
|
||||
DBG_DEBUG("msg_len=%"PRIu32" < msg->datalen=%"PRIu32"\n",
|
||||
msg_len, msg->datalen);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user