write_mongodb.c: clang-format
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 2 Jul 2017 17:16:55 +0000 (19:16 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 2 Jul 2017 17:16:55 +0000 (19:16 +0200)
src/write_mongodb.c

index 33f9bd5..63d3716 100644 (file)
@@ -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 "
-        "at byte %zu", error_location);
+          "at byte %zu",
+          error_location);
     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);
 
-    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);
   }