[dm-devel] [PATCH] kpartx: print "loop deleted" to stdout, not stderr

Julian Andres Klode julian.klode at canonical.com
Mon Feb 5 10:36:45 UTC 2018


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 at 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




More information about the dm-devel mailing list