HomeClusterLabs Projects

logging: Add CS_PRI_NODE_ID and CS_PRI_RING_ID

Description

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>

Details

Provenance
jfriesseAuthored on Jul 2 2019, 4:36 AM
Parents
rC49641b9a8f6b: vqsim: Fix gitignore
Branches
Unknown
Tags
Unknown

Event Timeline