summaryrefslogtreecommitdiff
path: root/tools/hi-test.c
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2012-07-19 21:56:22 (GMT)
committerJohn Denker <jsd@av8n.com>2012-07-19 21:56:22 (GMT)
commit067dd9a68045bf775e02a47fbf663b73c6d28901 (patch)
tree1eacaebd7eb595bfcafb2c447eb1607d274a550c /tools/hi-test.c
parent6710e3d72bfa36de6ef0cfb0bdd9623c65ebc40f (diff)
log some interesting variables
Diffstat (limited to 'tools/hi-test.c')
-rw-r--r--tools/hi-test.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/hi-test.c b/tools/hi-test.c
index 0c9a35f..47128a9 100644
--- a/tools/hi-test.c
+++ b/tools/hi-test.c
@@ -41,13 +41,22 @@ void exeunt(const int sts){
using namespace std;
+string progname;
+
+void dump(const string var){
+ char* str = getenv(var.c_str());
+ cerr << progname << ": " << var;
+ if (str) cerr << " is set to '" << str << "'" << endl;
+ else cerr << " is not set." << endl;
+}
+
int main(int _argc, const char** _argv){
int snooze(0);
int status(0);
int killmode(0);
int argc(_argc);
const char **argv(_argv);
- string progname(*argv); argv++; argc--;
+ progname = *argv; argv++; argc--;
while (argc) {
string arg(*argv); argv++; argc--;