about summary refs log tree commit diff
path: root/src/nix-hash/nix-hash.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix-hash/nix-hash.cc')
-rw-r--r--src/nix-hash/nix-hash.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix-hash/nix-hash.cc b/src/nix-hash/nix-hash.cc
index 360e07960b0e..2cef7818e857 100644
--- a/src/nix-hash/nix-hash.cc
+++ b/src/nix-hash/nix-hash.cc
@@ -29,8 +29,8 @@ void run(Strings args)
             else throw UsageError(format("unknown hash type `%1%'") % *i);
         }
         else
-            cout << format("%1%\n") % (string)
-                (flat ? hashFile(*i, ht) : hashPath(*i, ht));
+            cout << format("%1%\n") % printHash(
+                (flat ? hashFile(*i, ht) : hashPath(*i, ht)));
     }
 }