about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nix-store/nix-store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc
index 89831eb3d303..11d0d573f077 100644
--- a/src/nix-store/nix-store.cc
+++ b/src/nix-store/nix-store.cc
@@ -431,7 +431,7 @@ static void opQuery(Strings opFlags, Strings opArgs)
             for (auto & [path, links] : roots)
                 if (referrers.find(path) != referrers.end())
                     for (auto & link : links)
-                        cout << format("%1%\n") % link;
+                        cout << format("%1% -> %2%\n") % link % path;
             break;
         }