Cleanups
[invirt/third/libt4.git] / lock_demo.cc
index 4285269..3a85949 100644 (file)
@@ -1,14 +1,7 @@
-//
-// Lock demo
-//
-
-#include "lock_protocol.h"
 #include "lock_client.h"
-#include "rpc/rpc.h"
-#include <arpa/inet.h>
-#include <vector>
-#include <stdlib.h>
-#include <stdio.h>
+#include "tprintf.h"
+
+char tprintf_thread_prefix = 'd';
 
 int
 main(int argc, char *argv[])
@@ -19,5 +12,5 @@ main(int argc, char *argv[])
     }
 
     lock_client *lc = new lock_client(argv[1]);
-    printf ("stat returned %d\n", lc->stat("1"));
+    LOG_NONMEMBER("stat returned " << lc->stat("1"));
 }