From 3b7834af17ba17f4c478937ac5cb022045bb782b Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 9 Mar 2018 23:29:09 +0100 Subject: [PATCH] dmsetup: use stderr for error output When dmsetup command returns error, the message goes to stderr. --- tools/dmsetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/dmsetup.c b/tools/dmsetup.c index cc47d116d..a394c3fe0 100644 --- a/tools/dmsetup.c +++ b/tools/dmsetup.c @@ -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; }