mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 23:40:13 +00:00
windows-osilog-savestring-20080214
LICENSE MIT When osi_Log is disabled, osi_LogSaveString will no longer copy the provided string into the circular log buffer. This saves a huge amount of time.
This commit is contained in:
parent
588a229110
commit
00bada9c5e
@ -255,6 +255,10 @@ char *osi_LogSaveString(osi_log_t *logp, char *s)
|
||||
{
|
||||
char *saveplace;
|
||||
|
||||
if (!logp) return s;
|
||||
|
||||
if (!logp->enabled) return s;
|
||||
|
||||
if (s == NULL) return NULL;
|
||||
|
||||
thrd_EnterCrit(&logp->cs);
|
||||
|
Loading…
Reference in New Issue
Block a user