Blame 0026-print-memdebug-to-stderr.patch
|
Harald Hoyer |
a20c0e |
From dff9a66c44db384697801bd2d3b8af00ca6823cb Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
a20c0e |
From: "dyoung@redhat.com" <dyoung@redhat.com>
|
|
Harald Hoyer |
a20c0e |
Date: Wed, 13 Mar 2013 15:59:24 +0800
|
|
Harald Hoyer |
a20c0e |
Subject: [PATCH] print memdebug to stderr
|
|
Harald Hoyer |
a20c0e |
|
|
Harald Hoyer |
a20c0e |
memory usage tracing outputs are debug info, so it should be moved to
|
|
Harald Hoyer |
a20c0e |
stderr instead of stdout.
|
|
Harald Hoyer |
a20c0e |
|
|
Harald Hoyer |
a20c0e |
Signed-off-by: Dave Young <dyoung@redhat.com>
|
|
Harald Hoyer |
a20c0e |
---
|
|
Harald Hoyer |
a20c0e |
modules.d/99base/dracut-lib.sh | 2 +-
|
|
Harald Hoyer |
a20c0e |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Harald Hoyer |
a20c0e |
|
|
Harald Hoyer |
a20c0e |
diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh
|
|
Harald Hoyer |
a20c0e |
index d4d1e77..e456b01 100755
|
|
Harald Hoyer |
a20c0e |
--- a/modules.d/99base/dracut-lib.sh
|
|
Harald Hoyer |
a20c0e |
+++ b/modules.d/99base/dracut-lib.sh
|
|
Harald Hoyer |
a20c0e |
@@ -1041,7 +1041,7 @@ make_trace_mem()
|
|
Harald Hoyer |
a20c0e |
msg="$1"
|
|
Harald Hoyer |
a20c0e |
shift
|
|
Harald Hoyer |
a20c0e |
if [ -n "$DEBUG_MEM_LEVEL" ] && [ "$DEBUG_MEM_LEVEL" -gt 0 ]; then
|
|
Harald Hoyer |
a20c0e |
- make_trace show_memstats $DEBUG_MEM_LEVEL "[debug_mem]" "$msg" "$@"
|
|
Harald Hoyer |
a20c0e |
+ make_trace show_memstats $DEBUG_MEM_LEVEL "[debug_mem]" "$msg" "$@" >&2
|
|
Harald Hoyer |
a20c0e |
fi
|
|
Harald Hoyer |
a20c0e |
}
|
|
Harald Hoyer |
a20c0e |
|