From 8e9a874af96e9b0bbe6bbaf88764b887e2020cd5 Mon Sep 17 00:00:00 2001 From: phil Date: Fri, 10 Oct 2003 07:27:56 +0000 Subject: [PATCH] When the debug daemon buffer overflows, this needs to be printed to the console, not buried in a gigabyte of log data --- lnet/libcfs/debug.c | 2 ++ lustre/portals/libcfs/debug.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lnet/libcfs/debug.c b/lnet/libcfs/debug.c index 1c5cf47..018e91e 100644 --- a/lnet/libcfs/debug.c +++ b/lnet/libcfs/debug.c @@ -777,6 +777,8 @@ portals_debug_msg(int subsys, int mask, char *file, const char *fn, debug_daemon_state.overlapped = 1; ap = NULL; format = "DEBUG MARKER: Debug buffer overlapped\n"; + printk(KERN_ERR "LustreError: debug daemon buffer " + "overlapped"); } else /* More space just became available */ debug_daemon_state.overlapped = 0; } diff --git a/lustre/portals/libcfs/debug.c b/lustre/portals/libcfs/debug.c index 1c5cf47..018e91e 100644 --- a/lustre/portals/libcfs/debug.c +++ b/lustre/portals/libcfs/debug.c @@ -777,6 +777,8 @@ portals_debug_msg(int subsys, int mask, char *file, const char *fn, debug_daemon_state.overlapped = 1; ap = NULL; format = "DEBUG MARKER: Debug buffer overlapped\n"; + printk(KERN_ERR "LustreError: debug daemon buffer " + "overlapped"); } else /* More space just became available */ debug_daemon_state.overlapped = 0; } -- 1.8.3.1