From d9f0f4af7dc49c22232cc3be5e40866fc7d5dda7 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Tue, 28 Feb 2023 10:42:47 +0100 Subject: Resource dumps also write out block addresses --- sysdep/unix/io.c | 6 +++--- sysdep/unix/main.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sysdep') diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index fc1586ff..78908676 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -76,7 +76,7 @@ rf_free(resource *r) } static void -rf_dump(resource *r) +rf_dump(resource *r, unsigned indent UNUSED) { struct rfile *a = (struct rfile *) r; @@ -862,7 +862,7 @@ sk_reallocate(sock *s) } static void -sk_dump(resource *r) +sk_dump(resource *r, unsigned indent UNUSED) { sock *s = (sock *) r; static char *sk_type_names[] = { "TCP<", "TCP>", "TCP", "UDP", NULL, "IP", NULL, "MAGIC", "UNIX<", "UNIX", "SSH>", "SSH", "DEL!" }; @@ -2053,7 +2053,7 @@ sk_dump_all(void) { s = SKIP_BACK(sock, n, n); debug("%p ", s); - sk_dump(&s->r); + sk_dump(&s->r, 3); } debug("\n"); } diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c index ab076af6..a9ae842a 100644 --- a/sysdep/unix/main.c +++ b/sysdep/unix/main.c @@ -52,7 +52,7 @@ async_dump(void) { debug("INTERNAL STATE DUMP\n\n"); - rdump(&root_pool); + rdump(&root_pool, 0); sk_dump_all(); // XXXX tm_dump_all(); if_dump_all(); -- cgit v1.2.3