Commit f46af7de authored by Adam Jackson's avatar Adam Jackson Committed by Mike Gabriel

Restore compression of duplicate log file entries.

This undoes the workaround for X.org bug #964, which was an Xprintism.
parent b5cceb74
......@@ -561,15 +561,6 @@ VAuditF(const char *f, va_list args)
prefix = AuditPrefix();
len = vsnprintf(buf, sizeof(buf), f, args);
#if 1
/* XXX Compressing duplicated messages is temporarily disabled to
* work around bugzilla 964:
* https://freedesktop.org/bugzilla/show_bug.cgi?id=964
*/
ErrorF("%s%s", prefix != NULL ? prefix : "", buf);
oldlen = -1;
nrepeat = 0;
#else
if (len == oldlen && strcmp(buf, oldbuf) == 0) {
/* Message already seen */
nrepeat++;
......@@ -583,7 +574,6 @@ VAuditF(const char *f, va_list args)
nrepeat = 0;
auditTimer = TimerSet(auditTimer, 0, AUDIT_TIMEOUT, AuditFlush, NULL);
}
#endif
if (prefix != NULL)
free(prefix);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment