]> git.puffer.fish Git - matthieu/frr.git/commitdiff
sharpd: print the correct ID the NHG is using
authorStephen Worley <sworley@cumulusnetworks.com>
Wed, 13 May 2020 18:35:25 +0000 (14:35 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Mon, 28 Sep 2020 16:40:59 +0000 (12:40 -0400)
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 <sworley@cumulusnetworks.com>
sharpd/sharp_nht.c

index 414879290014be672cec07fe4a160f788fb4a108..731d58e560b04cf45550fe3fbfa2ec03c23245b2 100644 (file)
@@ -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++;
 }