Don't do the debug printout if ipaddr is NULL