All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kpartx: print "loop deleted" to stdout, not stderr
@ 2018-02-05 10:36 Julian Andres Klode
  2018-02-05 13:58 ` Martin Wilck
  0 siblings, 1 reply; 5+ messages in thread
From: Julian Andres Klode @ 2018-02-05 10:36 UTC (permalink / raw)
  To: Christophe Varoqui, Device-mapper development mailing list

Commit fa643f5d2590028a59c671b81ab41383806fd258 moved some
code around and changed the print for loop deleted from stdout
to stderr - but this is not an error message, and also printed
to stdout in another place, so let's just use printf() again
here.

Signed-off-by: Julian Andres Klode <julian.klode@canonical.com>
---
 kpartx/kpartx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kpartx/kpartx.c b/kpartx/kpartx.c
index c1af1c5e..2e882721 100644
--- a/kpartx/kpartx.c
+++ b/kpartx/kpartx.c
@@ -399,7 +399,7 @@ main(int argc, char **argv){
 					       loopdev);
 				r = 1;
 			} else
-				fprintf(stderr, "loop deleted : %s\n", loopdev);
+				printf("loop deleted : %s\n", loopdev);
 		}
 		goto end;
 	}
-- 
2.15.1

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

end of thread, other threads:[~2018-02-05 15:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-05 10:36 [PATCH] kpartx: print "loop deleted" to stdout, not stderr Julian Andres Klode
2018-02-05 13:58 ` Martin Wilck
2018-02-05 14:12   ` Julian Andres Klode
2018-02-05 14:17     ` Julian Andres Klode
2018-02-05 15:02       ` Martin Wilck

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.