From 3f8891b6ff84c5a9e81d1812e2fb74f768245943 Mon Sep 17 00:00:00 2001
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
Date: Tue, 23 Jun 2015 17:53:08 +0200
Subject: [PATCH] Fix incorrect debug message

---
 src/hydra-queue-runner/hydra-queue-runner.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/hydra-queue-runner/hydra-queue-runner.cc b/src/hydra-queue-runner/hydra-queue-runner.cc
index 9e25ee6a..c4ddee89 100644
--- a/src/hydra-queue-runner/hydra-queue-runner.cc
+++ b/src/hydra-queue-runner/hydra-queue-runner.cc
@@ -1269,7 +1269,7 @@ bool State::doBuildStep(std::shared_ptr<StoreAPI> store, Step::ptr step,
                    be certain no new referrers can be added. */
                 if (indirect.empty()) {
                     for (auto & s : steps) {
-                        printMsg(lvlDebug, format("finishing build step ‘%1%’") % step->drvPath);
+                        printMsg(lvlDebug, format("finishing build step ‘%1%’") % s->drvPath);
                         steps_->erase(s->drvPath);
                     }
                     break;