|
|
cf1c78 |
From 83c63b247f4030fe8123df7c9f96d7a1c8e245b1 Mon Sep 17 00:00:00 2001
|
|
|
cf1c78 |
From: Jan Friesse <jfriesse@redhat.com>
|
|
|
cf1c78 |
Date: Tue, 11 Feb 2014 15:30:33 +0100
|
|
|
cf1c78 |
Subject: [PATCH] cpg: Make sure nodid is always logged as hex num
|
|
|
cf1c78 |
|
|
|
cf1c78 |
Also number is prefixed by 0x so it's easier to spot that number is
|
|
|
cf1c78 |
hexadecimal.
|
|
|
cf1c78 |
|
|
|
cf1c78 |
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
|
|
|
cf1c78 |
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
|
|
|
cf1c78 |
---
|
|
|
cf1c78 |
exec/cpg.c | 8 ++++----
|
|
|
cf1c78 |
1 files changed, 4 insertions(+), 4 deletions(-)
|
|
|
cf1c78 |
|
|
|
cf1c78 |
diff --git a/exec/cpg.c b/exec/cpg.c
|
|
|
cf1c78 |
index 9981440..db8d987 100644
|
|
|
cf1c78 |
--- a/exec/cpg.c
|
|
|
cf1c78 |
+++ b/exec/cpg.c
|
|
|
cf1c78 |
@@ -1236,7 +1236,7 @@ static void message_handler_req_exec_cpg_downlist_old (
|
|
|
cf1c78 |
const void *message,
|
|
|
cf1c78 |
unsigned int nodeid)
|
|
|
cf1c78 |
{
|
|
|
cf1c78 |
- log_printf (LOGSYS_LEVEL_WARNING, "downlist OLD from node %d",
|
|
|
cf1c78 |
+ log_printf (LOGSYS_LEVEL_WARNING, "downlist OLD from node 0x%x",
|
|
|
cf1c78 |
nodeid);
|
|
|
cf1c78 |
}
|
|
|
cf1c78 |
|
|
|
cf1c78 |
@@ -1291,7 +1291,7 @@ static void message_handler_req_exec_cpg_procjoin (
|
|
|
cf1c78 |
{
|
|
|
cf1c78 |
const struct req_exec_cpg_procjoin *req_exec_cpg_procjoin = message;
|
|
|
cf1c78 |
|
|
|
cf1c78 |
- log_printf(LOGSYS_LEVEL_DEBUG, "got procjoin message from cluster node %d (%s) for pid %u",
|
|
|
cf1c78 |
+ log_printf(LOGSYS_LEVEL_DEBUG, "got procjoin message from cluster node 0x%x (%s) for pid %u",
|
|
|
cf1c78 |
nodeid,
|
|
|
cf1c78 |
api->totem_ifaces_print(nodeid),
|
|
|
cf1c78 |
(unsigned int)req_exec_cpg_procjoin->pid);
|
|
|
cf1c78 |
@@ -1307,7 +1307,7 @@ static void message_handler_req_exec_cpg_procleave (
|
|
|
cf1c78 |
{
|
|
|
cf1c78 |
const struct req_exec_cpg_procjoin *req_exec_cpg_procjoin = message;
|
|
|
cf1c78 |
|
|
|
cf1c78 |
- log_printf(LOGSYS_LEVEL_DEBUG, "got procleave message from cluster node %x (%s) for pid %u",
|
|
|
cf1c78 |
+ log_printf(LOGSYS_LEVEL_DEBUG, "got procleave message from cluster node 0x%x (%s) for pid %u",
|
|
|
cf1c78 |
nodeid,
|
|
|
cf1c78 |
api->totem_ifaces_print(nodeid),
|
|
|
cf1c78 |
(unsigned int)req_exec_cpg_procjoin->pid);
|
|
|
cf1c78 |
@@ -1328,7 +1328,7 @@ static void message_handler_req_exec_cpg_joinlist (
|
|
|
cf1c78 |
const struct join_list_entry *jle = (const struct join_list_entry *)(message + sizeof(struct qb_ipc_response_header));
|
|
|
cf1c78 |
struct joinlist_msg *stored_msg;
|
|
|
cf1c78 |
|
|
|
cf1c78 |
- log_printf(LOGSYS_LEVEL_DEBUG, "got joinlist message from node %x",
|
|
|
cf1c78 |
+ log_printf(LOGSYS_LEVEL_DEBUG, "got joinlist message from node 0x%x",
|
|
|
cf1c78 |
nodeid);
|
|
|
cf1c78 |
|
|
|
cf1c78 |
while ((const char*)jle < message + res->size) {
|
|
|
cf1c78 |
--
|
|
|
cf1c78 |
1.7.1
|
|
|
cf1c78 |
|