From d5a2f8c59aa86f633e8544c2a6210f36a1751344 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 11 Oct 2012 10:47:36 -0700 Subject: [PATCH] stapdyn: Fixed the verbose logging of probes found * stapdyn/stapdyn.cxx (find_uprobes): Use j to index the inner loop. --- stapdyn/stapdyn.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stapdyn/stapdyn.cxx b/stapdyn/stapdyn.cxx index 8e84ee998..491a9a1bc 100644 --- a/stapdyn/stapdyn.cxx +++ b/stapdyn/stapdyn.cxx @@ -445,8 +445,8 @@ find_uprobes(void* module, vector& targets) staplog(3) << "target " << t.path << " has " << t.probes.size() << " probes" << endl; for (uint64_t j = 0; j < t.probes.size(); ++j) - staplog(3) << " offset:" << (void*)t.probes[i].offset - << " semaphore:" << t.probes[i].semaphore << endl; + staplog(3) << " offset:" << (void*)t.probes[j].offset + << " semaphore:" << t.probes[j].semaphore << endl; } return 0; -- 2.43.5