]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
debug changes
authorAndrew Tridgell <tridge@samba.org>
Sun, 22 Apr 2007 14:39:55 +0000 (16:39 +0200)
committerAndrew Tridgell <tridge@samba.org>
Sun, 22 Apr 2007 14:39:55 +0000 (16:39 +0200)
(This used to be ctdb commit 3ddc1e4f1d3660d33cc2a07e53b66772116e9640)

ctdb/tools/ctdb_dump.c
ctdb/tools/ctdb_status.c

index aab1051ea3c600f335097195d25d536b73dcfec8..cf89dcf09c8656758f7cb9033a92276073c672ec 100644 (file)
@@ -52,10 +52,11 @@ static int traverse_fn(struct tdb_context *tdb, TDB_DATA key, TDB_DATA data, voi
        } else {
                keystr = hex_encode(NULL, key.dptr, key.dsize);
        }
-       printf("  rec %s lmaster=%u dmaster=%u\n", 
+       printf("  rec %s lmaster=%u dmaster=%u %c\n", 
               keystr, 
               ctdb_hash(&key) % (*num_nodes),
-              h->dmaster);
+              h->dmaster,
+               );
        talloc_free(keystr);
        return 0;
 }
index af4c62488d8825278616f9279a1f5e4749efb047..312decc7e58fa40f6fcd6105cdbdb0652274acef 100644 (file)
@@ -42,7 +42,7 @@ static void show_status(struct ctdb_status *s)
        printf("   req_status            %u\n", s->client.req_status);
        printf(" node_packets_sent       %u\n", s->node_packets_sent);
        printf(" node_packets_recv       %u\n", s->node_packets_recv);
-       printf("   req_call              %u\n", s->client.req_call);
+       printf("   req_call              %u\n", s->count.req_call);
        printf("   reply_call            %u\n", s->count.reply_call);
        printf("   reply_redirect        %u\n", s->count.reply_redirect);
        printf("   req_dmaster           %u\n", s->count.req_dmaster);