From: Keith Busch Date: Mon, 15 Aug 2016 17:31:42 +0000 (-0600) Subject: intel-nvme: Remove newline from filename X-Git-Tag: v0.9~15 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=be5ff5c51093df2557a4821ce5c0229b51f0c7a9;p=users%2Fhch%2Fnvme-cli.git intel-nvme: Remove newline from filename The filename shouldn't have the special character. Signed-off-by: Keith Busch --- diff --git a/intel-nvme.c b/intel-nvme.c index 34de0f0..31b664d 100644 --- a/intel-nvme.c +++ b/intel-nvme.c @@ -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;