[Box Backup-commit] COMMIT r2830 - box/trunk/lib/common

subversion at boxbackup.org subversion at boxbackup.org
Sat Jan 8 21:56:40 GMT 2011


Author: chris
Date: 2011-01-08 21:56:40 +0000 (Sat, 08 Jan 2011)
New Revision: 2830

Modified:
   box/trunk/lib/common/Logging.h
Log:
Add a macro for logging timespec structures. (merges [2744])


Modified: box/trunk/lib/common/Logging.h
===================================================================
--- box/trunk/lib/common/Logging.h	2011-01-08 21:40:21 UTC (rev 2829)
+++ box/trunk/lib/common/Logging.h	2011-01-08 21:56:40 UTC (rev 2830)
@@ -112,6 +112,11 @@
 	(objectid) << \
 	std::dec
 
+#define BOX_FORMAT_TIMESPEC(timespec) \
+	timespec.tv_sec << \
+	std::setw(6) << \
+	timespec.tv_usec
+
 #undef ERROR
 
 namespace Log




More information about the Boxbackup-commit mailing list