diff options
| author | Mark Stapp <mjs@voltanet.io> | 2020-10-21 13:56:26 -0400 | 
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2020-10-22 13:37:25 -0400 | 
| commit | 96b663a381c2e90fa663d69fce4e40f0be698e58 (patch) | |
| tree | 061e8297387581dcb5e730f405bf9a5596a58dc1 /ospfd/ospf_ism.c | |
| parent | 84de5a245a3eb17619588a535b9f408ce802a8c9 (diff) | |
ospfd: replace inet_ntoa
Stop using inet_ntoa, use %pI4 etc or inet_ntop instead
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'ospfd/ospf_ism.c')
| -rw-r--r-- | ospfd/ospf_ism.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/ospfd/ospf_ism.c b/ospfd/ospf_ism.c index e9faa415fe..36e97f8779 100644 --- a/ospfd/ospf_ism.c +++ b/ospfd/ospf_ism.c @@ -223,8 +223,8 @@ int ospf_dr_election(struct ospf_interface *oi)  	new_state = ospf_ism_state(oi); -	zlog_debug("DR-Election[1st]: Backup %s", inet_ntoa(BDR(oi))); -	zlog_debug("DR-Election[1st]: DR     %s", inet_ntoa(DR(oi))); +	zlog_debug("DR-Election[1st]: Backup %pI4", &BDR(oi)); +	zlog_debug("DR-Election[1st]: DR     %pI4", &DR(oi));  	if (new_state != old_state  	    && !(new_state == ISM_DROther && old_state < ISM_DROther)) { @@ -233,8 +233,8 @@ int ospf_dr_election(struct ospf_interface *oi)  		new_state = ospf_ism_state(oi); -		zlog_debug("DR-Election[2nd]: Backup %s", inet_ntoa(BDR(oi))); -		zlog_debug("DR-Election[2nd]: DR     %s", inet_ntoa(DR(oi))); +		zlog_debug("DR-Election[2nd]: Backup %pI4", &BDR(oi)); +		zlog_debug("DR-Election[2nd]: DR     %pI4", &DR(oi));  	}  	list_delete(&el_list);  | 
