We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents db98267 + 52de785 commit 4b3cb08Copy full SHA for 4b3cb08
1 file changed
src/nvme/json.c
@@ -318,9 +318,10 @@ int json_update_config(nvme_root_t r, const char *config_file)
318
json_object_put(subsys_array);
319
json_object_array_add(json_root, host_obj);
320
}
321
- if (!config_file)
+ if (!config_file) {
322
ret = json_object_to_fd(1, json_root, JSON_C_TO_STRING_PRETTY);
323
- else
+ printf("\n");
324
+ } else
325
ret = json_object_to_file_ext(config_file, json_root,
326
JSON_C_TO_STRING_PRETTY);
327
if (ret < 0) {
0 commit comments