1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

ctdb-tools: Simplify "ctdb getdbseqnum" output format

Print the sequence number without preamble.  Print it in hex to match
the logs.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2016-07-22 15:02:24 +10:00 committed by Amitay Isaacs
parent 41d13470cb
commit 74989b1eec

View File

@ -4507,7 +4507,7 @@ static int control_getdbseqnum(struct ctdb_context *ctdb, int argc, const char *
return -1;
}
printf("Sequence number:%lld\n", (long long)seqnum);
printf("0x%"PRIx64"\n", seqnum);
return 0;
}