Got rid of most using directives. Ported tests to python.
[invirt/third/libt4.git] / lock_demo.cc
index 3a85949..6cdf346 100644 (file)
@@ -1,16 +1,13 @@
 #include "lock_client.h"
-#include "tprintf.h"
 
-char tprintf_thread_prefix = 'd';
+char log_thread_prefix = 'd';
 
-int
-main(int argc, char *argv[])
-{
+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");
 }