Skip to content

Commit 050fe80

Browse files
naotakdave
authored andcommitted
btrfs-progs: tests: output nullb error/warning message to stderr
Outputting these messages to stdout can compromise other functions' output. Instead, output them to stderr to keep the results clean. Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: Naohiro Aota <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 03b0d70 commit 050fe80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/nullb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ SYSFS='/sys/kernel/config/nullb'
3434
# setup
3535

3636
function _error() {
37-
echo "ERROR: $@"
37+
echo "ERROR: $@" 1>&2
3838
exit 1
3939
}
4040

4141
function _warn() {
42-
echo "WARNING: $@"
42+
echo "WARNING: $@" 1>&2
4343
}
4444

4545
function _msg() {

0 commit comments

Comments
 (0)