Skip to content

Commit 4b3cb08

Browse files
authored
Merge pull request #443 from martin-gpy/dump_output
fabrics: sanitize dump-config output
2 parents db98267 + 52de785 commit 4b3cb08

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/nvme/json.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,10 @@ int json_update_config(nvme_root_t r, const char *config_file)
318318
json_object_put(subsys_array);
319319
json_object_array_add(json_root, host_obj);
320320
}
321-
if (!config_file)
321+
if (!config_file) {
322322
ret = json_object_to_fd(1, json_root, JSON_C_TO_STRING_PRETTY);
323-
else
323+
printf("\n");
324+
} else
324325
ret = json_object_to_file_ext(config_file, json_root,
325326
JSON_C_TO_STRING_PRETTY);
326327
if (ret < 0) {

0 commit comments

Comments
 (0)