From dc8b926ec3d6376c170da31521d3db656ceeafc6 Mon Sep 17 00:00:00 2001 From: Francesco Salvestrini Date: Sat, 20 Sep 2008 11:35:40 +0200 Subject: [PATCH] Rearranged distribute tracing --- src/distribute.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/distribute.cxx b/src/distribute.cxx index d125d98..f493f17 100644 --- a/src/distribute.cxx +++ b/src/distribute.cxx @@ -26,10 +26,12 @@ #include "misc/debug.h" #include "misc/environment.h" +#define PROGRAM_NAME "distribute" + void version(void) { std::cout - << PACKAGE << " (" << PACKAGE_NAME << ") " << PACKAGE_VERSION << std::endl + << PROGRAM_NAME << " (" << PACKAGE_NAME << ") " << PACKAGE_VERSION << std::endl << std::endl << "Copyright (C) 2008 Francesco Salvestrini" << std::endl << std::endl @@ -42,7 +44,7 @@ void version(void) void help(void) { std::cout - << "Usage: " << PACKAGE << " [OPTION]... "<< std::endl + << "Usage: " << PROGRAM_NAME << " [OPTION]... "<< std::endl << std::endl << "Options: " << std::endl << " -t, --time-out=TIME start time-out (seconds)" << std::endl @@ -60,11 +62,14 @@ void hint(const std::string & message) std::cout << message << std::endl - << "Try `" << PACKAGE << " -h' for more information." << std::endl; + << "Try `" << PROGRAM_NAME << " -h' for more information." << std::endl; } int main(int argc, char * argv[]) { + TR_CONFIG_LVL(TR_LVL_DEFAULT); + TR_CONFIG_PFX(PROGRAM_NAME); + try { int time_out = 0; // XXX FIXME: Change to a constant std::string job = ""; // XXX FIXME: Change to a constant -- 2.11.4.GIT