Fix up all use of /dev/stderr for portability to busybox /bin/sh
authorJason Wessel <jason.wessel@windriver.com>
Tue, 12 Apr 2011 19:11:36 +0000 (21:11 +0200)
committerNils Carlson <nils.carlson@ericsson.com>
Wed, 13 Apr 2011 15:24:33 +0000 (17:24 +0200)
commita4e9613d77b6a7bfe388f47cf5375b6aea9026b8
tree2434f498b80b497acdcb7780905e76b02196e522
parent30ffe2794fc413035208cdd2a7a061bc208e210f
Fix up all use of /dev/stderr for portability to busybox /bin/sh

The typical shell on a small embedded target using busybox does
not have support for /dev/stderr.  A more portable way to send
output to stderr with echo is to redirect stdout to stderr with
1>&2.

In the usttrace script it did something that was effectively
a NOP.  The result of echo "" 2>/dev/stderr is not actually
going to send anything to stderr because the echo is going
to write to stdout.  This case was also fixed.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Nils Carlson <nils.carlson@ericsson.com>
tests/test_functions.sh
tests/trace_matches
tests/valgrind_ust-consumerd.sh
usttrace
This page took 0.023768 seconds and 4 git commands to generate.