Code

plugin: Fixed log message for newly registered config callbacks.
authorSebastian Harl <sh@tokkee.org>
Sun, 1 Feb 2015 09:39:55 +0000 (10:39 +0100)
committerSebastian Harl <sh@tokkee.org>
Sun, 1 Feb 2015 14:00:36 +0000 (15:00 +0100)
src/core/plugin.c

index e2fce04dcc75b1c7180ca23b0b43f68384df222a..da77f8e57a637426894a1a425498b0216cd8ff7c 100644 (file)
@@ -742,7 +742,7 @@ sdb_plugin_register_config(sdb_plugin_config_cb callback)
                                "config callback from outside a plugin");
                return -1;
        }
-       return plugin_add_callback(&config_list, "init", ctx->info.plugin_name,
+       return plugin_add_callback(&config_list, "config", ctx->info.plugin_name,
                        (void *)callback, NULL);
 } /* sdb_plugin_register_config */