Skip to contentSkip to conversation

master - dmsetup: use stderr for error output

PATCH Zdenek Kabelac 1 participant 1 message Mar 13, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=3b7834af17ba17f4c478937ac5cb022045bb782b
Commit:        3b7834af17ba17f4c478937ac5cb022045bb782b
Parent:        29b2cfba06ee849774025c50599edb1c7587b7d9
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Mar 9 23:29:09 2018 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Tue Mar 13 12:58:57 2018 +0100

dmsetup: use stderr for error output

When dmsetup command returns error, the message goes to stderr.

---
 tools/dmsetup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/dmsetup.c +1 -1
index cc47d11..a394c3f 100644
@@ -2191,7 +2191,7 @@ static int _error_device(CMD_ARGS)
 	name = names ? names->name : argv[0];
 
 	if (!name || !*name) {
-		printf("No device specified\n");
+		err("No device specified.");
 		return_0;
 	}