All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH nvme-cli] nvme: print I/O error to stderr
@ 2019-03-06  9:42 Sagi Grimberg
  2019-03-06 15:12 ` Keith Busch
  0 siblings, 1 reply; 2+ messages in thread
From: Sagi Grimberg @ 2019-03-06  9:42 UTC (permalink / raw)


something like blktests might rely on this to output to
stderr.

Signed-off-by: Sagi Grimberg <sagi at grimberg.me>
---
 nvme.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nvme.c b/nvme.c
index 8aac2ef1f673..e88d19940df5 100644
--- a/nvme.c
+++ b/nvme.c
@@ -4413,7 +4413,7 @@ static int submit_io(int opcode, char *command, const char *desc,
 	if (err < 0)
 		perror("submit-io");
 	else if (err)
-		printf("%s:%s(%04x)\n", command, nvme_status_to_string(err), err);
+		fprintf(stderr, "%s:%s(%04x)\n", command, nvme_status_to_string(err), err);
 	else {
 		if (!(opcode & 1) && write(dfd, (void *)buffer, cfg.data_size) < 0) {
 			fprintf(stderr, "write: %s: failed to write buffer to output file\n",
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH nvme-cli] nvme: print I/O error to stderr
  2019-03-06  9:42 [PATCH nvme-cli] nvme: print I/O error to stderr Sagi Grimberg
@ 2019-03-06 15:12 ` Keith Busch
  0 siblings, 0 replies; 2+ messages in thread
From: Keith Busch @ 2019-03-06 15:12 UTC (permalink / raw)


Applied, thank you.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-03-06 15:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-06  9:42 [PATCH nvme-cli] nvme: print I/O error to stderr Sagi Grimberg
2019-03-06 15:12 ` Keith Busch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.