#include <stdio.h>
#include <assert.h>
+#define AFS_DAEMON_EVENT_NAME "TransarcAFSDaemon"
+
/* the size; overrideable */
long osi_logSize = OSI_LOG_DEFAULTSIZE;
0, KEY_QUERY_VALUE, &NPKey);
LSPsize=sizeof(osi_TraceOption);
RegQueryValueEx(NPKey, "TraceOption", NULL,
- &LSPtype, (LPBYTE)&osi_TraceOption, &LSPsize);\r
+ &LSPtype, (LPBYTE)&osi_TraceOption, &LSPsize);
}
HANDLE h; char *ptbuf[1],buf[MAXBUF_+1];
if (!ISLOGONTRACE(osi_TraceOption))
return;
- h = RegisterEventSource(NULL, a);
+ h = RegisterEventSource(NULL, AFS_DAEMON_EVENT_NAME);
ptbuf[0] = b;
ReportEvent(h, EVENTLOG_INFORMATION_TYPE, 0, 0, NULL, 1, 0, (const char **)ptbuf, NULL);
DeregisterEventSource(h);
va_list marker;
if (!ISLOGONTRACE(osi_TraceOption))
return;
- if (b)
- {
- wsprintf(buf,a,b);
- h = RegisterEventSource(NULL, buf);
- }
- else
- h = RegisterEventSource(NULL, a);
+ h = RegisterEventSource(NULL, AFS_DAEMON_EVENT_NAME);
va_start(marker,c);
_vsnprintf(buf,MAXBUF_,c,marker);
ptbuf[0] = buf;