diff options
author | Daniel Brahneborg <basic@chello.se> | 2002-04-13 06:33:32 +0000 |
---|---|---|
committer | Daniel Brahneborg <basic@chello.se> | 2002-04-13 06:33:32 +0000 |
commit | 700403e0cdc58260fc3d69caec3aa6e5b0f98eee (patch) | |
tree | c6f99c6500bcf752675ed02ce597a1d74b72a9f6 /sisinstall | |
parent | f88d281bc6c1dee79b14fceba97fd51954de0dc8 (diff) | |
download | plptools-700403e0cdc58260fc3d69caec3aa6e5b0f98eee.tar.gz plptools-700403e0cdc58260fc3d69caec3aa6e5b0f98eee.tar.bz2 plptools-700403e0cdc58260fc3d69caec3aa6e5b0f98eee.zip |
Only log if verbosity
Diffstat (limited to 'sisinstall')
-rw-r--r-- | sisinstall/fakepsion.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sisinstall/fakepsion.cpp b/sisinstall/fakepsion.cpp index 61ca210..3eaba18 100644 --- a/sisinstall/fakepsion.cpp +++ b/sisinstall/fakepsion.cpp @@ -1,5 +1,6 @@ #include "fakepsion.h" +#include "sistypes.h" #include <stdio.h> @@ -17,7 +18,8 @@ Enum<rfsv::errs> FakePsion::copyToPsion(const char * const from, const char * const to, void *, cpCallback_t func) { - printf(" -- Not really copying %s to %s\n", from, to); + if (logLevel >= 1) + printf(" -- Not really copying %s to %s\n", from, to); return rfsv::E_PSI_GEN_NONE; } @@ -53,7 +55,8 @@ FakePsion::disconnect() Enum<rfsv::errs> FakePsion::mkdir(const char* dir) { - printf(" -- Not really creating dir %s\n", dir); + if (logLevel >= 1) + printf(" -- Not really creating dir %s\n", dir); return rfsv::E_PSI_GEN_NONE; } |