server: fix DEBUG message for wrong event script options.
authorMichael Adam <obnox@samba.org>
Thu, 5 Jun 2014 10:48:03 +0000 (12:48 +0200)
committerAmitay Isaacs <amitay@gmail.com>
Tue, 10 Jun 2014 05:14:17 +0000 (15:14 +1000)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Thu Jun  5 19:51:36 CEST 2014 on sn-devel-104

(Imported from commit 4811cbea933c3665a08f9f0b37ad43afeace2b6c)

server/eventscript.c

index bf95b2114b3a1c7d24fcf9be271ffe5239099065..a108b785ede6c31f0156331881f27e0f2c8a8a78 100644 (file)
@@ -754,8 +754,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;
        }