]> www.infradead.org Git - users/hch/nvme-cli.git/commitdiff
intel-nvme: Remove newline from filename
authorKeith Busch <keith.busch@intel.com>
Mon, 15 Aug 2016 17:31:42 +0000 (11:31 -0600)
committerKeith Busch <keith.busch@intel.com>
Mon, 15 Aug 2016 17:32:49 +0000 (11:32 -0600)
The filename shouldn't have the special character.

Signed-off-by: Keith Busch <keith.busch@intel.com>
intel-nvme.c

index 34de0f00fb8fa91be95dd7793032bd34efb9ecba..31b664db4c42ebcf9f520ceaf38f13335736db2f 100644 (file)
@@ -295,7 +295,7 @@ static int get_internal_log(int argc, char **argv, struct command *command, stru
                        i--;
                }
 
-               sprintf(f, "%s_%-.*s.bin\n", cfg.log == 0 ? "Nlog" :
+               sprintf(f, "%s_%-.*s.bin", cfg.log == 0 ? "Nlog" :
                                cfg.log == 2 ? "EventLog" :  "AssertLog",
                                (int)sizeof(ctrl.sn), ctrl.sn);
                cfg.file = f;