Commit 83b32cc3 authored by Brian Wellington's avatar Brian Wellington
Browse files

print memory stats when verbose>10

parent 4fe87554
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THE SOFTWARE.
*/
/* $Id: dnssec-keygen.c,v 1.29 2000/06/01 18:49:16 tale Exp $ */
/* $Id: dnssec-keygen.c,v 1.30 2000/06/02 19:02:48 bwelling Exp $ */
#include <config.h>
......@@ -365,7 +365,8 @@ main(int argc, char **argv) {
if (log != NULL)
isc_log_destroy(&log);
/* isc_mem_stats(mctx, stdout);*/
if (verbose > 10)
isc_mem_stats(mctx, stdout);
isc_mem_destroy(&mctx);
return (0);
......
......@@ -393,6 +393,8 @@ main(int argc, char *argv[]) {
isc_log_destroy(&log);
isc_mem_free(mctx, output);
if (verbose > 10)
isc_mem_stats(mctx, stdout);
isc_mem_destroy(&mctx);
return (0);
}
......@@ -352,6 +352,8 @@ main(int argc, char *argv[]) {
isc_log_destroy(&log);
isc_mem_free(mctx, output);
if (verbose > 10)
isc_mem_stats(mctx, stdout);
isc_mem_destroy(&mctx);
return (0);
}
......@@ -400,7 +400,7 @@ signset(dns_db_t *db, dns_dbversion_t *version, dns_dbnode_t *node,
key = ISC_LIST_HEAD(keylist);
while (key != NULL) {
int alg = dst_key_alg(key->key);
unsigned int alg = dst_key_alg(key->key);
if (key->isdefault &&
(notsigned || (wassignedby[alg] && !nowsignedby[alg])))
{
......@@ -1344,7 +1344,7 @@ main(int argc, char *argv[]) {
else {
for (i = 0; i < argc; i++) {
isc_uint16_t id;
int alg;
unsigned int alg;
dns_fixedname_t fname;
dns_name_t *name;
isc_buffer_t b;
......@@ -1425,7 +1425,8 @@ main(int argc, char *argv[]) {
if (log != NULL)
isc_log_destroy(&log);
/* isc_mem_stats(mctx, stdout);*/
if (verbose > 10)
isc_mem_stats(mctx, stdout);
isc_mem_destroy(&mctx);
return (0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment