Remove FormatOrString and remaining uses of format()
This commit is contained in:
+3
-3
@@ -249,9 +249,9 @@ static void daemonLoop()
|
||||
if ((!trusted && !matchUser(user, group, allowedUsers)) || group == settings.buildUsersGroup)
|
||||
throw Error("user '%1%' is not allowed to connect to the Nix daemon", user);
|
||||
|
||||
printInfo(format((std::string) "accepted connection from pid %1%, user %2%" + (trusted ? " (trusted)" : ""))
|
||||
% (peer.pidKnown ? std::to_string(peer.pid) : "<unknown>")
|
||||
% (peer.uidKnown ? user : "<unknown>"));
|
||||
printInfo((std::string) "accepted connection from pid %1%, user %2%" + (trusted ? " (trusted)" : ""),
|
||||
peer.pidKnown ? std::to_string(peer.pid) : "<unknown>",
|
||||
peer.uidKnown ? user : "<unknown>");
|
||||
|
||||
// Fork a child to handle the connection.
|
||||
ProcessOptions options;
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ std::string formatProtocol(unsigned int proto)
|
||||
if (proto) {
|
||||
auto major = GET_PROTOCOL_MAJOR(proto) >> 8;
|
||||
auto minor = GET_PROTOCOL_MINOR(proto);
|
||||
return (format("%1%.%2%") % major % minor).str();
|
||||
return fmt("%1%.%2%", major, minor);
|
||||
}
|
||||
return "unknown";
|
||||
}
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ struct CmdCopySigs : StorePathsCommand
|
||||
//logger->setExpected(doneLabel, storePaths.size());
|
||||
|
||||
auto doPath = [&](const Path & storePathS) {
|
||||
//Activity act(*logger, lvlInfo, format("getting signatures for '%s'") % storePath);
|
||||
//Activity act(*logger, lvlInfo, "getting signatures for '%s'", storePath);
|
||||
|
||||
checkInterrupt();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user