aboutsummaryrefslogtreecommitdiff
path: root/src/zen/cmds/wipe_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zen/cmds/wipe_cmd.cpp')
-rw-r--r--src/zen/cmds/wipe_cmd.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/zen/cmds/wipe_cmd.cpp b/src/zen/cmds/wipe_cmd.cpp
index adf0e61f0..10f5ad8e1 100644
--- a/src/zen/cmds/wipe_cmd.cpp
+++ b/src/zen/cmds/wipe_cmd.cpp
@@ -33,7 +33,7 @@ ZEN_THIRD_PARTY_INCLUDES_END
namespace zen {
-namespace {
+namespace wipe_impl {
static std::atomic<bool> AbortFlag = false;
static std::atomic<bool> PauseFlag = false;
static bool IsVerbose = false;
@@ -49,10 +49,11 @@ namespace {
: GetMediumWorkerPool(EWorkloadType::Burst);
}
-#define ZEN_CONSOLE_VERBOSE(fmtstr, ...) \
- if (IsVerbose) \
- { \
- ZEN_CONSOLE_LOG(zen::logging::level::Info, fmtstr, ##__VA_ARGS__); \
+#undef ZEN_CONSOLE_VERBOSE
+#define ZEN_CONSOLE_VERBOSE(fmtstr, ...) \
+ if (IsVerbose) \
+ { \
+ ZEN_CONSOLE_LOG(zen::logging::Info, fmtstr, ##__VA_ARGS__); \
}
static void SignalCallbackHandler(int SigNum)
@@ -505,7 +506,7 @@ namespace {
}
return CleanWipe;
}
-} // namespace
+} // namespace wipe_impl
WipeCommand::WipeCommand()
{
@@ -532,6 +533,7 @@ WipeCommand::~WipeCommand() = default;
void
WipeCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv)
{
+ using namespace wipe_impl;
ZEN_UNUSED(GlobalOptions);
signal(SIGINT, SignalCallbackHandler);
@@ -549,7 +551,7 @@ WipeCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv)
ProgressMode = (IsVerbose || m_PlainProgress) ? ProgressBar::Mode::Plain : ProgressBar::Mode::Pretty;
BoostWorkerThreads = m_BoostWorkerThreads;
- MakeSafeAbsolutePathÍnPlace(m_Directory);
+ MakeSafeAbsolutePathInPlace(m_Directory);
if (!IsDir(m_Directory))
{