]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
print memdebug to stderr
authordyoung@redhat.com <dyoung@redhat.com>
Wed, 13 Mar 2013 07:59:24 +0000 (15:59 +0800)
committerHarald Hoyer <harald@redhat.com>
Wed, 13 Mar 2013 12:12:57 +0000 (13:12 +0100)
memory usage tracing outputs are debug info, so it should be moved to
stderr instead of stdout.

Signed-off-by: Dave Young <dyoung@redhat.com>
modules.d/99base/dracut-lib.sh

index d4d1e77662d55c903ba1629d54f4898c71f85eb5..e456b01de0252fa824da99b7960624d89e7e1686 100755 (executable)
@@ -1041,7 +1041,7 @@ make_trace_mem()
     msg="$1"
     shift
     if [ -n "$DEBUG_MEM_LEVEL" ] && [ "$DEBUG_MEM_LEVEL" -gt 0 ]; then
-        make_trace show_memstats $DEBUG_MEM_LEVEL "[debug_mem]" "$msg" "$@"
+        make_trace show_memstats $DEBUG_MEM_LEVEL "[debug_mem]" "$msg" "$@" >&2
     fi
 }