From: Hartmut Reuter Date: Mon, 14 May 2001 23:54:01 +0000 (+0000) Subject: restore-writelogbuffer-for-mrafs-20010514 X-Git-Tag: openafs-stable-1_1_0~165 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=e85c2defa41ece194c9afdbe5aefae58b372d8bb restore-writelogbuffer-for-mrafs-20010514 MR-AFs is making use of this to hook into logging to write multiline messages into the log ==================== This delta was composed from multiple commits as part of the CVS->Git migration. The checkin message with each commit was inconsistent. The following are the additional commit messages. ==================== move forward to current version of function --- diff --git a/src/util/serverLog.c b/src/util/serverLog.c index 079c7d2..d7375aa 100644 --- a/src/util/serverLog.c +++ b/src/util/serverLog.c @@ -76,6 +76,16 @@ int mrafsStyleLogs = 0; int printLocks = 0; static char ourName[MAXPATHLEN]; +void WriteLogBuffer(buf,len) + char *buf; + afs_uint32 len; +{ + LOCK_SERVERLOG(); + if (serverLogFD > 0) + write(serverLogFD, buf, len); + UNLOCK_SERVERLOG(); +} + /* VARARGS1 */ void FSLog (const char *format, ...) {