do not call sprintf on undefined values to prevent warnings
Merge remote-tracking branch 'sbertrang/fix-ifconfig-warns-without-ip' into development