gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog libbase/log.cpp libbase/log.h [release_0_


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog libbase/log.cpp libbase/log.h [release_0_7_2]
Date: Thu, 09 Nov 2006 10:13:13 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Branch:         release_0_7_2
Changes by:     Sandro Santilli <strk>  06/11/09 10:13:12

Modified files:
        .              : ChangeLog 
        libbase        : log.cpp log.h 

Log message:
                * libbase/log.{cpp,h}: added log_security() for security-related
                  messages.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release_0_7_2&r1=1.1412.2.128&r2=1.1412.2.129
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/log.cpp?cvsroot=gnash&only_with_tag=release_0_7_2&r1=1.32.2.1&r2=1.32.2.2
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/log.h?cvsroot=gnash&only_with_tag=release_0_7_2&r1=1.30.2.3&r2=1.30.2.4

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1412.2.128
retrieving revision 1.1412.2.129
diff -u -b -r1.1412.2.128 -r1.1412.2.129
--- ChangeLog   9 Nov 2006 10:12:04 -0000       1.1412.2.128
+++ ChangeLog   9 Nov 2006 10:13:12 -0000       1.1412.2.129
@@ -1,5 +1,7 @@
 2006-11-09 Sandro Santilli <address@hidden>
 
+       * libbase/log.{cpp,h}: added log_security() for security-related
+         messages.
        * server/StringPredicates.h: backported StringNoCaseEqual
 
 2006-11-09 Markus Gothe <address@hidden>

Index: libbase/log.cpp
===================================================================
RCS file: /sources/gnash/gnash/libbase/log.cpp,v
retrieving revision 1.32.2.1
retrieving revision 1.32.2.2
diff -u -b -r1.32.2.1 -r1.32.2.2
--- libbase/log.cpp     30 Oct 2006 14:28:47 -0000      1.32.2.1
+++ libbase/log.cpp     9 Nov 2006 10:13:12 -0000       1.32.2.2
@@ -18,7 +18,7 @@
 //
 //
 
-/* $Id: log.cpp,v 1.32.2.1 2006/10/30 14:28:47 rsavoye Exp $ */
+/* $Id: log.cpp,v 1.32.2.2 2006/11/09 10:13:12 strk Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -268,6 +268,21 @@
     va_end (ap);    
 }
 
+void
+log_security(const char* fmt, ...)
+{
+    va_list ap;
+    char tmp[BUFFER_SIZE];
+    
+    va_start (ap, fmt);
+    vsnprintf (tmp, BUFFER_SIZE-1, fmt, ap);
+    tmp[BUFFER_SIZE-1] = '\0';
+    
+    dbglogfile << "SECURITY: " << tmp << endl;
+    
+    va_end (ap);    
+}
+
 const char *
 LogFile::getEntry(void)
 {

Index: libbase/log.h
===================================================================
RCS file: /sources/gnash/gnash/libbase/log.h,v
retrieving revision 1.30.2.3
retrieving revision 1.30.2.4
diff -u -b -r1.30.2.3 -r1.30.2.4
--- libbase/log.h       7 Nov 2006 13:11:17 -0000       1.30.2.3
+++ libbase/log.h       9 Nov 2006 10:13:12 -0000       1.30.2.4
@@ -17,7 +17,7 @@
 // 
 //
 
-/* $Id: log.h,v 1.30.2.3 2006/11/07 13:11:17 strk Exp $ */
+/* $Id: log.h,v 1.30.2.4 2006/11/09 10:13:12 strk Exp $ */
 
 #ifndef GNASH_LOG_H
 #define GNASH_LOG_H
@@ -161,6 +161,7 @@
 DSOEXPORT void log_trace(const char* fmt, ...) __attribute__((format (printf, 
1, 2)));
 DSOEXPORT void log_action(const char* fmt, ...) __attribute__((format (printf, 
1, 2)));
 DSOEXPORT void log_parse(const char* fmt, ...) __attribute__((format (printf, 
1, 2)));
+DSOEXPORT void logsecurity(const char* fmt, ...) __attribute__((format 
(printf, 1, 2)));
 #else
 // Printf-style interfaces.
 DSOEXPORT void log_msg(const char* fmt, ...);
@@ -169,6 +170,7 @@
 DSOEXPORT void log_trace(const char* fmt, ...);
 DSOEXPORT void log_action(const char* fmt, ...);
 DSOEXPORT void log_parse(const char* fmt, ...);
+DSOEXPORT void log_security(const char* fmt, ...);
 #endif
 
 // Undefine this to completely remove parse debugging at compile-time




reply via email to

[Prev in Thread] Current Thread [Next in Thread]