]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme: fixup 'show-hostnqn' command
authorHannes Reinecke <hare@suse.de>
Wed, 11 Aug 2021 08:32:23 +0000 (10:32 +0200)
committerKeith Busch <kbusch@kernel.org>
Wed, 11 Aug 2021 17:43:05 +0000 (11:43 -0600)
CI complained about a missing format for fprintf().

Signed-off-by: Hannes Reinecke <hare@suse.de>
nvme.c

diff --git a/nvme.c b/nvme.c
index 8cf698892aeef4bbcc10cc7df41c05d1acd54eac..79605f5f539d7e1479e683b5c00882edd9659ac6 100644 (file)
--- a/nvme.c
+++ b/nvme.c
@@ -5744,7 +5744,7 @@ static int show_hostnqn_cmd(int argc, char **argv, struct command *command, stru
                return ENOENT;
        }
 
-       fprintf(stdout, hostnqn);
+       fprintf(stdout, "%s\n", hostnqn);
        free(hostnqn);
 
        return 0;