]> git.proxmox.com Git - mirror_corosync.git/commit - test/testvotequorum2.c
logging: Add CS_PRI_NODE_ID and CS_PRI_RING_ID
authorJan Friesse <jfriesse@redhat.com>
Tue, 2 Jul 2019 08:36:30 +0000 (10:36 +0200)
committerJan Friesse <jfriesse@redhat.com>
Wed, 3 Jul 2019 08:53:52 +0000 (10:53 +0200)
commit5731af278288bf2a27d2a71a8478066ca6047ba7
tree6a14e43992a2ebf9ab64e1ab4d6ff8cc2fb98f60
parent49641b9a8f6b9dd55279ec88afb63456d98a4fad
logging: Add CS_PRI_NODE_ID and CS_PRI_RING_ID

Previously node id was logged ether as a %d (most often), %u, %x or
PRI.32 and ring id ether as %lld, %llx with various separators (., :, /)
between rep nodeid and seq. This seems to cause confusion.

This patch adds macros CS_PRI_NODE_ID, CS_PRI_RING_ID and
CS_PRI_RING_ID_SEQ (CS prefix = corosync, PRI modeled in spirit of
inttypes.h PRIx32) and makes code use them.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
23 files changed:
exec/cfg.c
exec/cmap.c
exec/cpg.c
exec/main.c
exec/totemconfig.c
exec/totemknet.c
exec/totemsrp.c
exec/votequorum.c
exec/vsf_quorum.c
include/corosync/corotypes.h
test/cpghum.c
test/testcpg.c
test/testcpg2.c
test/testcpgzc.c
test/testquorum.c
test/testvotequorum1.c
test/testvotequorum2.c
test/testzcgc.c
tools/corosync-cfgtool.c
tools/corosync-notifyd.c
tools/corosync-quorumtool.c
vqsim/vqmain.c
vqsim/vqsim_vq_engine.c