From 7cce08aaace5daf034bd7ab71c34a50cfb0997a2 Mon Sep 17 00:00:00 2001 From: Antti Kantee Date: Mon, 22 Apr 2013 12:44:17 +0200 Subject: [PATCH] i'll go out on a limb and state that foo isn't the best possible panic message --- brlib/libnetconfig/dhcp_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brlib/libnetconfig/dhcp_main.c b/brlib/libnetconfig/dhcp_main.c index 6642062..78ad540 100644 --- a/brlib/libnetconfig/dhcp_main.c +++ b/brlib/libnetconfig/dhcp_main.c @@ -254,8 +254,8 @@ rump_netconfig_dhcp_ipv4_oneshot(const char *ifname) return EINVAL; } ifaces = iface; - if (open_socket(iface, ETHERTYPE_IP) != 0) - panic("foo"); + if ((error = open_socket(iface, ETHERTYPE_IP)) != 0) + panic("failed to open socket: %d"); up_interface(iface);