From 58a0c8a9e0daa5e4071b756fb8f410a398ae8b99 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 8 Apr 2011 14:49:43 +0200 Subject: s3:net idmap check: fix output of an invalid record Only print the value number for hwm, version and seqnum keys. Pair-Programmed-With: Gregor Beck Autobuild-User: Michael Adam Autobuild-Date: Fri Apr 8 17:29:31 CEST 2011 on sn-devel-104 --- source3/utils/net_idmap_check.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/utils/net_idmap_check.c b/source3/utils/net_idmap_check.c index 7140f4c2a9..88725e18a6 100644 --- a/source3/utils/net_idmap_check.c +++ b/source3/utils/net_idmap_check.c @@ -225,8 +225,13 @@ static char get_action(struct check_action* a, struct record* r, TDB_DATA* v) { d_printf("%s: %s ", a->name, print_data(r, r->key)); if (is_map(r)) { d_printf("-> %s\n", print_data(r, r->val)); - } else { + } else if (r->key_type == DT_HWM || + r->key_type == DT_VER || + r->key_type == DT_SEQ) + { d_printf(": %ld\n", r->id); + } else { + d_printf("\n"); } } else { d_printf(a->fmt, a->name, -- cgit