diff options
author | phk <phk@FreeBSD.org> | 2002-04-24 20:59:31 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-04-24 20:59:31 +0000 |
commit | 155395406f6c005d008fc9e10472301c01405b92 (patch) | |
tree | dfafd7e4807c2b89006145507228cbec2bed32d9 /tools | |
parent | 34c9517fb0c1cf0fb19902dea2d26726722cc3ad (diff) | |
download | FreeBSD-src-155395406f6c005d008fc9e10472301c01405b92.zip FreeBSD-src-155395406f6c005d008fc9e10472301c01405b92.tar.gz |
Improve the output in case of inserts or deleted.
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/regression/geom/ConfCmp/ConfCmp.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/regression/geom/ConfCmp/ConfCmp.c b/tools/regression/geom/ConfCmp/ConfCmp.c index 2bd54b8..2497126 100644 --- a/tools/regression/geom/ConfCmp/ConfCmp.c +++ b/tools/regression/geom/ConfCmp/ConfCmp.c @@ -303,10 +303,20 @@ compare_node(struct node *n1, struct node *n2, int in) for (;;) { if (n1a == NULL && n2a == NULL) return (0); - if (n1a != NULL && n2a == NULL) + if (n1a != NULL && n2a == NULL) { + printf("1>"); + indent(in); + print_node(n1a); + printf("2>\n"); return (1); - if (n1a == NULL && n2a != NULL) + } + if (n1a == NULL && n2a != NULL) { + printf("1>\n"); + printf("2>"); + indent(in); + print_node(n2a); return (1); + } i = compare_node2(n1a, n2a, in + 2); if (i) return (1); |