Trivial fix to sanitize the dump-config output by appending a
new line at the end.
Signed-off-by: Martin George <marting@netapp.com>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
json_object_put(subsys_array);
json_object_array_add(json_root, host_obj);
}
- if (!config_file)
+ if (!config_file) {
ret = json_object_to_fd(1, json_root, JSON_C_TO_STRING_PRETTY);
- else
+ printf("\n");
+ } else
ret = json_object_to_file_ext(config_file, json_root,
JSON_C_TO_STRING_PRETTY);
if (ret < 0) {