diff options
author | Stephen Worley <sworley@cumulusnetworks.com> | 2020-05-13 20:35:25 +0200 |
---|---|---|
committer | Stephen Worley <sworley@cumulusnetworks.com> | 2020-09-28 18:40:59 +0200 |
commit | 25645bd6017802cbcb628718a928599c42f72c72 (patch) | |
tree | 0c783d11db645858e97b425d6e77edfc1d4f81cd /sharpd | |
parent | zebra: NHG ID bounds macros (diff) | |
download | frr-25645bd6017802cbcb628718a928599c42f72c72.tar.xz frr-25645bd6017802cbcb628718a928599c42f72c72.zip |
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 <sworley@cumulusnetworks.com>
Diffstat (limited to 'sharpd')
-rw-r--r-- | sharpd/sharp_nht.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sharpd/sharp_nht.c b/sharpd/sharp_nht.c index 414879290..731d58e56 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++; } |