diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2023-03-02 15:44:19 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2023-03-02 15:57:54 +0100 |
commit | 29abc8e7647cd9ec6ef5a1df3fcb1dcf4a4495a2 (patch) | |
tree | 0461f565859916470a054f9db68df280090d4dc1 /src/nix/daemon.cc | |
parent | b9370fd7a040558cc8c7d5db109fdd3e407ff409 (diff) |
Remove FormatOrString and remaining uses of format()
Diffstat (limited to 'src/nix/daemon.cc')
-rw-r--r-- | src/nix/daemon.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nix/daemon.cc b/src/nix/daemon.cc index a22bccba1..7e4a7ba86 100644 --- a/src/nix/daemon.cc +++ b/src/nix/daemon.cc @@ -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; |