diff options
author | Paul Smith <psmith@gnu.org> | 1999-11-22 06:15:35 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 1999-11-22 06:15:35 +0000 |
commit | 217ca5d91098c0b6b704fe3d9806378dd5dcc698 (patch) | |
tree | 129b499338c05e6d58bd69e4bf31f42ef2ac9c4d /remote-cstms.c | |
parent | ebb733c0f9ab045b6fd6245df2baf2e87463e1bc (diff) | |
download | gunmake-217ca5d91098c0b6b704fe3d9806378dd5dcc698.tar.gz |
* Add new debugging output level selection feature.
Diffstat (limited to 'remote-cstms.c')
-rw-r--r-- | remote-cstms.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/remote-cstms.c b/remote-cstms.c index 18d4ed6..057e50a 100644 --- a/remote-cstms.c +++ b/remote-cstms.c @@ -26,6 +26,8 @@ Boston, MA 02111-1307, USA. */ #include "filedef.h" #include "commands.h" #include "job.h" +#include "debug.h" + #include <sys/time.h> #include <netdb.h> @@ -81,7 +83,7 @@ start_remote_job_p (first_p) Customs requires a privileged source port be used. */ make_access (); - if (debug_flag) + if (ISDB (DB_EXTRA)) Rpc_Debug(1); /* Ping the daemon once to see if it is there. */ @@ -122,8 +124,8 @@ start_remote_job_p (first_p) status = Customs_Host (EXPORT_SAME, &permit); if (status != RPC_SUCCESS) { - if (debug_flag) - printf ("Customs won't export: %s\n", Rpc_ErrorMessage (status)); + DB (DB_EXTRA, (_("Customs won't export: %s\n"), + Rpc_ErrorMessage (status))); return 0; } |