Got rid of most using directives. Ported tests to python.
[invirt/third/libt4.git] / rsm_tester.cc
index 1a8b833..d5d27fd 100644 (file)
@@ -10,19 +10,19 @@ char log_thread_prefix = 't';
 
 int main(int argc, char *argv[]) {
     if(argc != 4){
-        cerr << "Usage: " << argv[0] << " [host:]port [partition] arg" << endl;
+        LOG_NONMEMBER << "Usage: " << argv[0] << " [host:]port [partition] arg";
         return 1;
     }
 
     rsmtest_client *lc = new rsmtest_client(argv[1]);
     string command(argv[2]);
     if (command == "partition") {
-        cout << "net_repair returned " << lc->net_repair(stoi(argv[3]));
+        LOG_NONMEMBER << "net_repair returned " << lc->net_repair(std::stoi(argv[3]));
     } else if (command == "breakpoint") {
-        int b = stoi(argv[3]);
-        cout << "breakpoint " << b << " returned " << lc->breakpoint(b);
+        int b = std::stoi(argv[3]);
+        LOG_NONMEMBER << "breakpoint " << b << " returned " << lc->breakpoint(b);
     } else {
-        cerr << "Unknown command " << argv[2] << endl;
+        LOG_NONMEMBER << "Unknown command " << argv[2];
     }
     return 0;
 }