Rewrote threaded log code to be more idiomatic.
[invirt/third/libt4.git] / lock_demo.cc
index 97c2964..6cdf346 100644 (file)
@@ -4,10 +4,10 @@ char log_thread_prefix = 'd';
 
 int main(int argc, char *argv[]) {
     if(argc != 2) {
-        LOG_NONMEMBER("Usage: " << argv[0] << " [host:]port");
+        LOG_NONMEMBER << "Usage: " << argv[0] << " [host:]port";
         return 1;
     }
 
     lock_client *lc = new lock_client(argv[1]);
-    LOG_NONMEMBER("stat returned " << lc->stat("1"));
+    LOG_NONMEMBER << "stat returned " << lc->stat("1");
 }