diff options
author | Phil Davis <phil.davis@inf.org> | 2016-02-17 19:09:21 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-02-17 19:09:21 +0545 |
commit | ebc9c1521cfb4ecbc5b47fde2468ebb74c8a7b1a (patch) | |
tree | 55b0ea59c190937b177c574ceb06356a4ac14c2f /src/etc/inc/interfaces.inc | |
parent | 2ad3266c78b46eafae392d646cc8f2d8386bdb6d (diff) | |
download | pfsense-ebc9c1521cfb4ecbc5b47fde2468ebb74c8a7b1a.zip pfsense-ebc9c1521cfb4ecbc5b47fde2468ebb74c8a7b1a.tar.gz |
Fix printf(printf())
This looked odd having nested calls to printf()
Should it actually log_error()?
Diffstat (limited to 'src/etc/inc/interfaces.inc')
-rw-r--r-- | src/etc/inc/interfaces.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index 246136b..9a8304f 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -4224,7 +4224,7 @@ function interface_dhcp_configure($interface = "wan") { /* generate dhclient_wan.conf */ $fd = fopen("{$g['varetc_path']}/dhclient_{$interface}.conf", "w"); if (!$fd) { - printf(printf(gettext("Error: cannot open dhclient_%s.conf in interface_dhcp_configure() for writing.%s"), $interface, "\n")); + log_error(sprintf(gettext("Error: cannot open dhclient_%s.conf in interface_dhcp_configure() for writing."), $interface)); return 1; } |