From: Stephen Worley Date: Wed, 13 May 2020 18:35:25 +0000 (-0400) Subject: sharpd: print the correct ID the NHG is using X-Git-Tag: base_7.6~489^2~41 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=25645bd6017802cbcb628718a928599c42f72c72;p=mirror%2Ffrr.git 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 --- 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++; }