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
This commit is contained in:
Axel Dörfler 2006-04-11 18:40:46 +00:00
parent 541143a08b
commit be891a5e5d

View File

@ -890,7 +890,7 @@ dprintf(const char *format, ...)
length = OUTPUT_BUFFER_SIZE - 1; length = OUTPUT_BUFFER_SIZE - 1;
if (strncmp(sOutputBuffer, sLastOutputBuffer, length) == 0 if (strncmp(sOutputBuffer, sLastOutputBuffer, length) == 0
&& length > 0 && sOutputBuffer[length - 1] == '\n') { && length > 1 && sOutputBuffer[length - 1] == '\n') {
sMessageRepeatCount++; sMessageRepeatCount++;
sMessageRepeatTime = system_time(); sMessageRepeatTime = system_time();
} else { } else {