aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-04-16 19:01:49 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-04-16 19:01:49 +0200
commit29043e7e9edad1ff81b45ec147da32fbd6607385 (patch)
tree2317b612d8519383aa8dc882690768e81d65a7eb /src/nix
parentc277231b7d8c11b8612acda578f759a6fd427c8f (diff)
Fix
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/flake.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc
index a8518a543..9d3f3c002 100644
--- a/src/nix/flake.cc
+++ b/src/nix/flake.cc
@@ -156,7 +156,7 @@ struct CmdFlakeInfo : FlakeCommand, MixJSON
if (json) {
auto json = flakeToJson(*store, flake);
- logger->stdout(json.dump());
+ logger->stdout("%s", json.dump());
} else
printFlakeInfo(*store, flake);
}
@@ -174,7 +174,7 @@ struct CmdFlakeListInputs : FlakeCommand, MixJSON
auto flake = lockFlake();
if (json)
- logger->stdout(flake.lockFile.toJson());
+ logger->stdout("%s", flake.lockFile.toJson());
else {
logger->stdout("%s", flake.flake.lockedRef);