[PATCH] to fix a debug message in ctdb

Michael Adam obnox at samba.org
Thu Jun 5 08:28:56 MDT 2014


Attached is the patch for master.
Should also be applied to ctdb 2.5 and older
versions.

Review/push/comments appreciated!

Cheers - Michael
-------------- next part --------------
From 8834c7ef6fdd547bf5541a1a38a43ba71aaa54fc Mon Sep 17 00:00:00 2001
From: Michael Adam <obnox at samba.org>
Date: Thu, 5 Jun 2014 12:48:03 +0200
Subject: [PATCH] ctdb:server: fix DEBUG message for wrong event script options.

Signed-off-by: Michael Adam <obnox at samba.org>
---
 ctdb/server/eventscript.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ctdb/server/eventscript.c b/ctdb/server/eventscript.c
index 11c1e1d..af9fe34 100644
--- a/ctdb/server/eventscript.c
+++ b/ctdb/server/eventscript.c
@@ -647,8 +647,9 @@ static int ctdb_event_script_callback_v(struct ctdb_context *ctdb,
 		return -1;
 	}
 	if (!check_options(state->call, state->options)) {
-		DEBUG(DEBUG_ERR, ("Bad eventscript options '%s' for %s\n",
-				  ctdb_eventscript_call_names[state->call], state->options));
+		DEBUG(DEBUG_ERR, ("Bad eventscript options '%s' for '%s'\n",
+				  state->options,
+				  ctdb_eventscript_call_names[state->call]));
 		talloc_free(state);
 		return -1;
 	}
-- 
1.9.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20140605/4eb9dc96/attachment.pgp>


More information about the samba-technical mailing list