From 0b8d1e03049c5092d705bcd3ce369f02a9472f95 Mon Sep 17 00:00:00 2001 From: Martin George Date: Sun, 17 Dec 2023 00:45:56 +0530 Subject: [PATCH] fabrics: fix invalid output format error during nvme connect 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 --- fabrics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fabrics.c b/fabrics.c index ca02e353..e37c3935 100644 --- 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, -- 2.50.1