From 7da9802acdb1ec1d76050064f54aae38b21a03d4 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Mon, 19 Mar 2018 14:26:09 +1100 Subject: [PATCH] ctdb-tests: Add debug messages for unimplemented functions Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- ctdb/tests/src/fake_ctdbd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ctdb/tests/src/fake_ctdbd.c b/ctdb/tests/src/fake_ctdbd.c index 070feda3b23d..7d18de4cc9dc 100644 --- a/ctdb/tests/src/fake_ctdbd.c +++ b/ctdb/tests/src/fake_ctdbd.c @@ -3553,6 +3553,8 @@ static void control_error(TALLOC_CTX *mem_ctx, { struct ctdb_reply_control reply; + D_DEBUG("Control %u not implemented\n", request->opcode); + reply.rdata.opcode = request->opcode; reply.status = -1; reply.errmsg = "Not implemented"; @@ -3957,6 +3959,8 @@ static void client_process_message(struct tevent_req *req, message_disable_recoveries(mem_ctx, req, &header, &request); } else if (srvid == CTDB_SRVID_TAKEOVER_RUN) { message_takeover_run(mem_ctx, req, &header, &request); + } else { + D_DEBUG("Message id 0x%"PRIx64" not implemented\n", srvid); } /* check srvid */ -- 2.34.1