From: Keith Busch Date: Thu, 15 Oct 2015 14:15:43 +0000 (-0600) Subject: Print status to stderr on r/w commands X-Git-Tag: v0.2~6 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d79c7e4a3587270323122f8450562e93eba3fc23;p=users%2Fsagi%2Fnvme-cli.git Print status to stderr on r/w commands The option exists to pipe the data through stdout, so we don't want to potentially contaminate user data with program output. Signed-off-by: Keith Busch --- diff --git a/nvme.c b/nvme.c index 182b5aa5..08003617 100644 --- a/nvme.c +++ b/nvme.c @@ -3323,7 +3323,7 @@ static int submit_io(int opcode, char *command, const char *desc, fprintf(stderr, "failed to write meta-data buffer to output file\n"); return EINVAL; } else - printf("%s: success\n", command); + fprintf(stderr, "%s: Success\n", command); } free_and_return: free(buffer);