diff options
author | Maria Matejka <mq@ucw.cz> | 2023-02-28 10:42:47 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2023-04-04 17:00:59 +0200 |
commit | d9f0f4af7dc49c22232cc3be5e40866fc7d5dda7 (patch) | |
tree | 1b1972793ac880c067d9f89428f2fff1385f9199 /lib/resource.h | |
parent | 8e6abea41eca5c18b03e46706cbfa2972085f954 (diff) |
Resource dumps also write out block addresses
Diffstat (limited to 'lib/resource.h')
-rw-r--r-- | lib/resource.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/resource.h b/lib/resource.h index 5d9e2165..911b990d 100644 --- a/lib/resource.h +++ b/lib/resource.h @@ -30,7 +30,7 @@ struct resclass { char *name; /* Resource class name */ unsigned size; /* Standard size of single resource */ void (*free)(resource *); /* Freeing function */ - void (*dump)(resource *); /* Dump to debug output */ + void (*dump)(resource *, unsigned indent); /* Dump to debug output */ resource *(*lookup)(resource *, unsigned long); /* Look up address (only for debugging) */ struct resmem (*memsize)(resource *); /* Return size of memory used by the resource, may be NULL */ }; @@ -51,7 +51,7 @@ void resource_init(void); pool *rp_new(pool *, const char *); /* Create new pool */ pool *rp_newf(pool *, const char *, ...); /* Create a new pool with a formatted string as its name */ void rfree(void *); /* Free single resource */ -void rdump(void *); /* Dump to debug output */ +void rdump(void *, unsigned indent); /* Dump to debug output */ struct resmem rmemsize(void *res); /* Return size of memory used by the resource */ void rlookup(unsigned long); /* Look up address (only for debugging) */ void rmove(void *, pool *); /* Move to a different pool */ |