From 5581a7fc08a5eff20ec9a3add62b17d74d18d7ab Mon Sep 17 00:00:00 2001 From: anlan_cs Date: Mon, 10 Jul 2023 21:42:14 +0800 Subject: [PATCH] zebra: adjust one debug info Adjust one debug info, separate the ip address from it. Just like it is processed in `redistribute_update()`. Before: ``` 34:1375.75.75.75/32: Redist del: re 0x55c1112067e0 (0:static), new re 0x55c1112de7c0 (0:static) ``` After: ``` (34:13):75.75.75.75/32: Redist del: re 0x55c1112067e0 (0:static), new re 0x55c1112de7c0 (0:static) ``` Signed-off-by: anlan_cs --- zebra/redistribute.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/zebra/redistribute.c b/zebra/redistribute.c index 47ecbc0b44..11b7b7cf82 100644 --- a/zebra/redistribute.c +++ b/zebra/redistribute.c @@ -256,12 +256,11 @@ void redistribute_delete(const struct route_node *rn, table = new_re->table; } - zlog_debug( - "%u:%u%pRN: Redist del: re %p (%u:%s), new re %p (%u:%s)", - vrfid, table, rn, old_re, old_inst, - old_re ? zebra_route_string(old_re->type) : "None", - new_re, new_inst, - new_re ? zebra_route_string(new_re->type) : "None"); + zlog_debug("(%u:%u):%pRN: Redist del: re %p (%u:%s), new re %p (%u:%s)", + vrfid, table, rn, old_re, old_inst, + old_re ? zebra_route_string(old_re->type) : "None", + new_re, new_inst, + new_re ? zebra_route_string(new_re->type) : "None"); } /* Skip invalid (e.g. linklocal) prefix */ -- 2.39.5