From 34ea3c0a672760b93d5263f6e5bc9011dce2b186 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 9 Jul 2007 19:39:01 +0000 Subject: Updates, the client now tells protocols about new connections, and the hexDump is less ugly. --- src/logger.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/logger.cpp') diff --git a/src/logger.cpp b/src/logger.cpp index 1e0313b..aedfe0f 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -133,12 +133,11 @@ void Bu::Logger::hexDump( int nLevel, const char *sFile, const char *sFunction, int nLine, const void *pDataV, long nDataLen, const char *lpName ) { - log( nLevel, sFile, sFunction, nLine, "Displaying %ld bytes of %s.\n", nDataLen, lpName ); + log( nLevel, sFile, sFunction, nLine, "Displaying %ld bytes of %s.", nDataLen, lpName ); const unsigned char *pData = (const unsigned char *)pDataV; int j = 0; Bu::FString sBorder; for( int l = 0; l < 8*3+2*8+2; l++ ) sBorder += ((l!=8*3)?("-"):("+")); - sBorder += '\n'; log( nLevel, sFile, sFunction, nLine, sBorder.getStr() ); Bu::FString sLine; for(;;) @@ -165,7 +164,6 @@ void Bu::Logger::hexDump( int nLevel, const char *sFile, const char *sFunction, sprintf( buf, "%c ", (pData[j+k]>32 && pData[j+k]<=128)?(pData[j+k]):('.') ); sLine += buf; } - sLine += '\n'; log( nLevel, sFile, sFunction, nLine, sLine.getStr() ); sLine = ""; j += kmax; -- cgit v1.2.3