All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julian Andres Klode <julian.klode@canonical.com>
To: Christophe Varoqui <christophe.varoqui@opensvc.com>,
	Device-mapper development mailing list <dm-devel@redhat.com>
Subject: [PATCH] kpartx: print "loop deleted" to stdout, not stderr
Date: Mon,  5 Feb 2018 11:36:45 +0100	[thread overview]
Message-ID: <20180205103645.19121-1-julian.klode@canonical.com> (raw)

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

             reply	other threads:[~2018-02-05 10:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-05 10:36 Julian Andres Klode [this message]
2018-02-05 13:58 ` [PATCH] kpartx: print "loop deleted" to stdout, not stderr 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180205103645.19121-1-julian.klode@canonical.com \
    --to=julian.klode@canonical.com \
    --cc=christophe.varoqui@opensvc.com \
    --cc=dm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.