projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
write_mongodb.c: clang-format
[collectd.git]
/
src
/
write_mongodb.c
diff --git
a/src/write_mongodb.c
b/src/write_mongodb.c
index
33f9bd5
..
63d3716
100644
(file)
--- a/
src/write_mongodb.c
+++ b/
src/write_mongodb.c
@@
-144,7
+144,8
@@
static bson_t *wm_create_bson(const data_set_t *ds, /* {{{ */
size_t error_location;
if (!bson_validate(ret, BSON_VALIDATE_UTF8, &error_location)) {
ERROR("write_mongodb plugin: Error in generated BSON document "
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;
}
bson_destroy(ret);
return NULL;
}
@@
-377,10
+378,11
@@
static int wm_config_node(oconfig_item_t *ci) /* {{{ */
ssnprintf(cb_name, sizeof(cb_name), "write_mongodb/%s", node->name);
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);
}
INFO("write_mongodb plugin: registered write plugin %s %d", cb_name,
status);
}