aboutsummaryrefslogtreecommitdiff
path: root/src/app/main/subsysmgr.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-09-30 10:07:20 -0400
committerNick Mathewson <nickm@torproject.org>2020-03-26 12:17:28 -0400
commitac72ecd5813e878e223df48556a43061e0d0068c (patch)
treee3927a4cdf867d7f545306b9818d213d3af2351f /src/app/main/subsysmgr.c
parent8f49943459564a59ca7f60476aef6b0ddd79a56c (diff)
downloadtor-ac72ecd5813e878e223df48556a43061e0d0068c.tar.gz
tor-ac72ecd5813e878e223df48556a43061e0d0068c.zip
Add --dbg-dump-subsystem-list command to list the subsystems.
I'm prefixing this with --dbg-* because it is not meant to be used externally.
Diffstat (limited to 'src/app/main/subsysmgr.c')
-rw-r--r--src/app/main/subsysmgr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app/main/subsysmgr.c b/src/app/main/subsysmgr.c
index 4913949e2c..de601d28cd 100644
--- a/src/app/main/subsysmgr.c
+++ b/src/app/main/subsysmgr.c
@@ -302,7 +302,8 @@ subsystems_dump_list(void)
{
for (unsigned i = 0; i < n_tor_subsystems - 1; ++i) {
const subsys_fns_t *sys = tor_subsystems[i];
- printf("% 4d\t%s\n", sys->level, sys->name);
+ printf("% 4d\t%16s\t%s\n", sys->level, sys->name,
+ sys->location?sys->location:"");
}
}