From 25645bd6017802cbcb628718a928599c42f72c72 Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Wed, 13 May 2020 14:35:25 -0400 Subject: [PATCH] sharpd: print the correct ID the NHG is using We were incrementing in the output the ID value when we shouldnt be. The value the NHG is assigned is before its incremented. Signed-off-by: Stephen Worley --- sharpd/sharp_nht.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharpd/sharp_nht.c b/sharpd/sharp_nht.c index 4148792900..731d58e560 100644 --- a/sharpd/sharp_nht.c +++ b/sharpd/sharp_nht.c @@ -84,7 +84,7 @@ static uint32_t nhg_id; static uint32_t sharp_get_next_nhid(void) { - zlog_debug("Id assigned: %u", nhg_id + 1); + zlog_debug("Id assigned: %u", nhg_id); return nhg_id++; } -- 2.39.5