summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ea6856e)
raw | patch | inline | side by side (parent: ea6856e)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 2 Jul 2017 17:16:55 +0000 (19:16 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 2 Jul 2017 17:16:55 +0000 (19:16 +0200) |
src/write_mongodb.c | patch | blob | history |
diff --git a/src/write_mongodb.c b/src/write_mongodb.c
index 33f9bd50011e9be6c5941c26d26c1a556113d04f..63d3716baf161d303fb5b86f8ea13cde9ddf9526 100644 (file)
--- a/src/write_mongodb.c
+++ b/src/write_mongodb.c
size_t error_location;
if (!bson_validate(ret, BSON_VALIDATE_UTF8, &error_location)) {
ERROR("write_mongodb plugin: Error in generated BSON document "
- "at byte %zu", error_location);
+ "at byte %zu",
+ error_location);
bson_destroy(ret);
return NULL;
}
ssnprintf(cb_name, sizeof(cb_name), "write_mongodb/%s", node->name);
- status = plugin_register_write(
- cb_name, wm_write, &(user_data_t){
- .data = node, .free_func = wm_config_free,
- });
+ status =
+ plugin_register_write(cb_name, wm_write,
+ &(user_data_t){
+ .data = node, .free_func = wm_config_free,
+ });
INFO("write_mongodb plugin: registered write plugin %s %d", cb_name,
status);
}