Replaced "Last message repeated 1 times." with just reprinting the message (requested by Jerome Duval).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17060 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
675c19c9cf
commit
d7faea3f20
@ -826,16 +826,22 @@ static void
|
||||
flush_pending_repeats(void)
|
||||
{
|
||||
if (sMessageRepeatCount > 0) {
|
||||
char temp[128];
|
||||
int32 length = snprintf(temp, sizeof(temp),
|
||||
"Last message repeated %ld times.\n", sMessageRepeatCount);
|
||||
int32 length;
|
||||
|
||||
if (sMessageRepeatCount > 1) {
|
||||
length = snprintf(sOutputBuffer, OUTPUT_BUFFER_SIZE,
|
||||
"Last message repeated %ld times.\n", sMessageRepeatCount);
|
||||
} else {
|
||||
// if we only have one repeat just reprint the buffer
|
||||
length = strlen(sOutputBuffer);
|
||||
}
|
||||
|
||||
if (sSerialDebugEnabled)
|
||||
arch_debug_serial_puts(temp);
|
||||
arch_debug_serial_puts(sOutputBuffer);
|
||||
if (sSyslogOutputEnabled)
|
||||
syslog_write(temp, length);
|
||||
syslog_write(sOutputBuffer, length);
|
||||
if (sBlueScreenEnabled || sDebugScreenEnabled)
|
||||
blue_screen_puts(temp);
|
||||
blue_screen_puts(sOutputBuffer);
|
||||
|
||||
sMessageRepeatCount = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user