Rename logging->stdout to logging->stdout_

musl doesn't like this identifier
This commit is contained in:
Matthew Bauer 2020-06-25 16:27:00 -04:00 committed by John Ericson
parent 58bc3b6578
commit 88cf6ffce3
7 changed files with 9 additions and 9 deletions

View file

@ -87,7 +87,7 @@ public:
virtual void writeToStdout(std::string_view s);
template<typename... Args>
inline void stdout(const std::string & fs, const Args & ... args)
inline void stdout_(const std::string & fs, const Args & ... args)
{
boost::format f(fs);
formatHelper(f, args...);

View file

@ -58,7 +58,7 @@ struct CmdAddToStore : MixDryRun, StoreCommand
store->addToStore(info, source);
}
logger->stdout("%s", store->printStorePath(info.path));
logger->stdout_("%s", store->printStorePath(info.path));
}
};

View file

@ -65,7 +65,7 @@ struct CmdEval : MixJSON, InstallableCommand
printValueAsJSON(*state, true, *v, jsonOut, context);
} else {
state->forceValueDeep(*v);
logger->stdout("%s", *v);
logger->stdout_("%s", *v);
}
}
};

View file

@ -69,7 +69,7 @@ struct CmdHash : Command
Hash h = hashSink->finish().first;
if (truncate && h.hashSize > 20) h = compressHash(h, 20);
logger->stdout(h.to_string(base, base == SRI));
logger->stdout_(h.to_string(base, base == SRI));
}
}
};
@ -103,7 +103,7 @@ struct CmdToBase : Command
void run() override
{
for (auto s : args)
logger->stdout(Hash(s, ht).to_string(base, base == SRI));
logger->stdout_(Hash(s, ht).to_string(base, base == SRI));
}
};

View file

@ -37,11 +37,11 @@ struct MixLs : virtual Args, MixJSON
auto line = fmt("%s %20d %s", tp, st.fileSize, relPath);
if (st.type == FSAccessor::Type::tSymlink)
line += " -> " + accessor->readLink(curPath);
logger->stdout(line);
logger->stdout_(line);
if (recursive && st.type == FSAccessor::Type::tDirectory)
doPath(st, curPath, relPath, false);
} else {
logger->stdout(relPath);
logger->stdout_(relPath);
if (recursive) {
auto st = accessor->stat(curPath);
if (st.type == FSAccessor::Type::tDirectory)

View file

@ -25,7 +25,7 @@ struct CmdShowConfig : Command, MixJSON
std::map<std::string, Config::SettingInfo> settings;
globalConfig.getSettings(settings);
for (auto & s : settings)
logger->stdout("%s = %s", s.first, s.second.value);
logger->stdout_("%s = %s", s.first, s.second.value);
}
}
};

View file

@ -152,7 +152,7 @@ struct CmdWhyDepends : SourceExprCommand
auto pathS = store->printStorePath(node.path);
assert(node.dist != inf);
logger->stdout("%s%s%s%s" ANSI_NORMAL,
logger->stdout_("%s%s%s%s" ANSI_NORMAL,
firstPad,
node.visited ? "\e[38;5;244m" : "",
firstPad != "" ? "" : "",