projects
/
invirt/third/libt4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-ups
[invirt/third/libt4.git]
/
lock_demo.cc
diff --git
a/lock_demo.cc
b/lock_demo.cc
index
72fddf8
..
88383ab
100644
(file)
--- a/
lock_demo.cc
+++ b/
lock_demo.cc
@@
-1,13
+1,12
@@
#include "lock_client.h"
#include "lock_client.h"
-char log_thread_prefix = 'd';
-
int main(int argc, char *argv[]) {
int main(int argc, char *argv[]) {
+ global = new t4_state('d');
if(argc != 2) {
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]);
return 1;
}
lock_client *lc = new lock_client(argv[1]);
- LOG_NONMEMBER("stat returned " << lc->stat("1"));
+ LOG_NONMEMBER << "stat returned " << lc->stat("1");
}
}