SOURCES: sib-lzo2.patch - also update printf format (is that 64bit...
glen
glen at pld-linux.org
Tue Dec 12 00:55:29 CET 2006
Author: glen Date: Mon Dec 11 23:55:29 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- also update printf format (is that 64bit safe?)
---- Files affected:
SOURCES:
sib-lzo2.patch (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SOURCES/sib-lzo2.patch
diff -u SOURCES/sib-lzo2.patch:1.2 SOURCES/sib-lzo2.patch:1.3
--- SOURCES/sib-lzo2.patch:1.2 Tue Dec 12 00:53:36 2006
+++ SOURCES/sib-lzo2.patch Tue Dec 12 00:55:24 2006
@@ -21,8 +21,8 @@
GPP_LI += -L$(LZOLIB) -I$(LZOINC)
endif
---- sib-1.2/src/multiplex.cpp~ 2006-12-12 01:52:42.504632239 +0200
-+++ sib-1.2/src/multiplex.cpp 2006-12-12 01:52:50.534813685 +0200
+--- sib-1.2/src/multiplex.cpp~ 2006-12-12 01:54:21.406866821 +0200
++++ sib-1.2/src/multiplex.cpp 2006-12-12 01:54:24.996947928 +0200
@@ -29,7 +29,7 @@
int enMultiplex( u_char *frame, u_int len)
{
@@ -32,6 +32,15 @@
bool override = false;
// send a "standard" frame
+@@ -87,7 +87,7 @@
+ else
+ memcpy( buf+1, frame, len);
+
+- if( config.debug) printf( "ETH (%u) -> UDP (%u)\n", len, newlen);
++ if( config.debug) printf( "ETH (%u) -> UDP (%lu)\n", len, newlen);
+
+ // to avoid negative compression stats newlen-1 is used (CONTROL byte)
+ if( config.statsInterval > 0) newFrame( STAT_SENT, len, newlen-1);
@@ -96,7 +96,7 @@
int deMultiplex( u_char *frame, u_int len)
@@ -41,3 +50,12 @@
static u_char buf[MAX_BUF_LEN];
if( len == 0) return 1;
+@@ -121,7 +121,7 @@
+ memcpy( buf, frame+1, newlen);
+ }
+
+- if( config.debug) printf( "UDP (%u) -> ETH (%u)\n", len, newlen);
++ if( config.debug) printf( "UDP (%u) -> ETH (%lu)\n", len, newlen);
+ // len-1 for control byte compensation
+ if( config.statsInterval > 0) newFrame( STAT_RECV, newlen, len-1);
+
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/sib-lzo2.patch?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list