diff options
author | Fritz Elfert <felfert@to.com> | 2002-07-11 04:01:32 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2002-07-11 04:01:32 +0000 |
commit | 35ecad1c3699a65f9dd7076eb65f6ce2a855a06a (patch) | |
tree | 13d7595ce9f7a9b97da663831945c196ca5cceda | |
parent | f45ad9a7df7b4500880b5fece4017651cf63d431 (diff) | |
download | plptools-35ecad1c3699a65f9dd7076eb65f6ce2a855a06a.tar.gz plptools-35ecad1c3699a65f9dd7076eb65f6ce2a855a06a.tar.bz2 plptools-35ecad1c3699a65f9dd7076eb65f6ce2a855a06a.zip |
- Be silent on unconnected Psion unless debugging
-rw-r--r-- | plpprint/plpprintd.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plpprint/plpprintd.cc b/plpprint/plpprintd.cc index 63ce6a3..e324a7e 100644 --- a/plpprint/plpprintd.cc +++ b/plpprint/plpprintd.cc @@ -1040,9 +1040,11 @@ main(int argc, char **argv) ret = wPrt->initPrinter(); if (ret == rfsv::E_PSI_GEN_NONE) service_loop(); - else - debuglog("plpprintd: could not connect: %s", - ret.toString().c_str()); + else { + if (debug) + debuglog("plpprintd: could not connect: %s", + ret.toString().c_str()); + } delete wPrt; sleep(1); } else { |