[Box Backup-commit] COMMIT r1447 - box/chris/general/bin/bbstored

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Sat Mar 24 14:41:36 GMT 2007


Author: chris
Date: 2007-03-24 14:41:36 +0000 (Sat, 24 Mar 2007)
New Revision: 1447

Modified:
   box/chris/general/bin/bbstored/BackupStoreDaemon.cpp
Log:
Remove newlines from syslog() messages


Modified: box/chris/general/bin/bbstored/BackupStoreDaemon.cpp
===================================================================
--- box/chris/general/bin/bbstored/BackupStoreDaemon.cpp	2007-03-24 14:41:14 UTC (rev 1446)
+++ box/chris/general/bin/bbstored/BackupStoreDaemon.cpp	2007-03-24 14:41:36 UTC (rev 1447)
@@ -295,7 +295,7 @@
 	std::string clientCommonName(rStream.GetPeerCommonName());
 	
 	// Log the name
-	::syslog(LOG_INFO, "Certificate CN: %s\n", clientCommonName.c_str());
+	::syslog(LOG_INFO, "Certificate CN: %s", clientCommonName.c_str());
 	
 	// Check it
 	int32_t id;
@@ -342,7 +342,7 @@
 {
 	// Log the amount of data transferred
 	::syslog(LOG_INFO, "Connection statistics for %s: "
-			"IN=%lld OUT=%lld TOTAL=%lld\n", commonName,
+			"IN=%lld OUT=%lld TOTAL=%lld", commonName,
 			(long long)s.GetBytesRead(), 
 			(long long)s.GetBytesWritten(),
 			(long long)s.GetBytesRead() + 




More information about the Boxbackup-commit mailing list