Simplifications and clean-ups
[invirt/third/libt4.git] / lock_demo.cc
index 3b38cdf..6cdf346 100644 (file)
@@ -1,14 +1,13 @@
 #include "lock_client.h"
-#include "threaded_log.h"
 
 char log_thread_prefix = 'd';
 
 int main(int argc, char *argv[]) {
     if(argc != 2) {
-        fprintf(stderr, "Usage: %s [host:]port\n", argv[0]);
+        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");
 }