]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
fabrics: fix invalid output format error during nvme connect
authorMartin George <marting@netapp.com>
Sat, 16 Dec 2023 19:15:56 +0000 (00:45 +0530)
committerDaniel Wagner <wagi@monom.org>
Tue, 19 Dec 2023 09:00:33 +0000 (10:00 +0100)
Nvme connect currently fails with an "Invalid output format"
error if no output-format is specified to the nvme connect
command. Fix this by initializing the format string.

Signed-off-by: Martin George <marting@netapp.com>
fabrics.c

index ca02e353cba98110feb31bb09e0914a00d2671a4..e37c393582726349400e388313c8f18da8842ab3 100644 (file)
--- a/fabrics.c
+++ b/fabrics.c
@@ -887,7 +887,7 @@ int nvmf_connect(const char *desc, int argc, char **argv)
        int ret;
        enum nvme_print_flags flags;
        struct nvme_fabrics_config cfg = { 0 };
-       char *format = "";
+       char *format = "normal";
 
 
        NVMF_ARGS(opts, cfg,