svn rev #21975: tools/gssmonger/trunk/gssmaster/
raeburn@MIT.EDU
raeburn at MIT.EDU
Thu Feb 12 12:29:34 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=21975
Commit By: raeburn
Log Message:
use vsnprintf with a va_list arg; use va_start on correct arg
Changed Files:
U tools/gssmonger/trunk/gssmaster/ezlog_log4cpp.cpp
Modified: tools/gssmonger/trunk/gssmaster/ezlog_log4cpp.cpp
===================================================================
--- tools/gssmonger/trunk/gssmaster/ezlog_log4cpp.cpp 2009-02-12 17:26:52 UTC (rev 21974)
+++ tools/gssmonger/trunk/gssmaster/ezlog_log4cpp.cpp 2009-02-12 17:29:34 UTC (rev 21975)
@@ -149,7 +149,7 @@
// Start a new log4cpp log
EZLOGAPI ezStartBlock(IN OPTIONAL HANDLE OldLevel,
- IN OPTIONAL PHANDLE NewLevel,
+ OUT OPTIONAL PHANDLE NewLevel,
IN OPTIONAL ULONG Flags, // currently ignored
IN OPTIONAL ULONG LogLevel,
IN LPEZSTR LogString,
@@ -167,7 +167,7 @@
va_list args;
va_start(args, LogString);
- snprintf(ProcessedLogString, 4096, LogString, args);
+ vsnprintf(ProcessedLogString, 4096, LogString, args);
va_end(args);
char LogName[24];
@@ -218,7 +218,7 @@
vsnprintf(ProcessedLogString, 4096, LogString, *args);
va_end(*args);
-
+
cat->log(etol_priority(LogLevel),
ProcessedLogString);
@@ -233,7 +233,7 @@
IN LPEZSTR LogString, ...) {
va_list args;
- va_start(args, Line);
+ va_start(args, LogString);
vezLogMsg( LogLevel, Log4cCategory, File, Line, LogString, &args );
}
More information about the cvs-krb5
mailing list