From be891a5e5da36eb064569fc9e405c4278a058d83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 11 Apr 2006 18:40:46 +0000 Subject: [PATCH] No longer counts "\n" as repeated string - this seems to fix at least the cases where I noticed missing debug output. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17090 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/debug/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/debug/debug.c b/src/system/kernel/debug/debug.c index f8c1494f3a..1ba6dc7eed 100644 --- a/src/system/kernel/debug/debug.c +++ b/src/system/kernel/debug/debug.c @@ -890,7 +890,7 @@ dprintf(const char *format, ...) length = OUTPUT_BUFFER_SIZE - 1; if (strncmp(sOutputBuffer, sLastOutputBuffer, length) == 0 - && length > 0 && sOutputBuffer[length - 1] == '\n') { + && length > 1 && sOutputBuffer[length - 1] == '\n') { sMessageRepeatCount++; sMessageRepeatTime = system_time(); } else {