Merge pull request #1815 from donaldsharp/ospf_sr_cleanup

ospfd: Cleanup ospf SR log messages
This commit is contained in:
Olivier Dugeon 2018-03-02 13:26:13 +01:00 committed by GitHub
commit a8e31fced6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -306,6 +306,7 @@ int ospf_sr_init(void)
{
int rc = -1;
if (IS_DEBUG_OSPF_SR)
zlog_info("SR (%s): Initialize SR Data Base", __func__);
memset(&OspfSR, 0, sizeof(struct ospf_sr_db));
@ -1616,8 +1617,8 @@ static int ospf_sr_update_schedule(struct thread *t)
monotime(&stop_time);
zlog_info(
"SR (%s): SPF Processing Time(usecs): %lld\n",
if (IS_DEBUG_OSPF_SR)
zlog_debug("SR (%s): SPF Processing Time(usecs): %lld\n",
__func__,
(stop_time.tv_sec - start_time.tv_sec) * 1000000LL
+ (stop_time.tv_usec - start_time.tv_usec));