ctdb: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)
committerMichael Adam <obnox@samba.org>
Fri, 6 Jun 2014 08:45:35 +0000 (10:45 +0200)
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 182aed61b5bd89be74ded616ee9600f716cd68d6..a207bde885ee1969375786a28fe74ec48d54871b 100644 (file)
@@ -646,8 +646,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;
        }