summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2017-01-16 14:28:57 +1100
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2017-01-31 15:16:10 +1100
commitc7202ebe8fe98afb3e5b73bbdb78db652e8df5d1 (patch)
tree59de0fbf1b26eae387b45deac4315a209330de00
parentd94bb8c48f42678a5f1cf0041429b82aa1938540 (diff)
downloadtalos-petitboot-c7202ebe8fe98afb3e5b73bbdb78db652e8df5d1.zip
talos-petitboot-c7202ebe8fe98afb3e5b73bbdb78db652e8df5d1.tar.gz
discover/sysinfo: Fix useless error message
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
-rw-r--r--discover/sysinfo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/discover/sysinfo.c b/discover/sysinfo.c
index 619c0c5..0ac29c1 100644
--- a/discover/sysinfo.c
+++ b/discover/sysinfo.c
@@ -23,6 +23,7 @@ void system_info_set_interface_address(unsigned int hwaddr_size,
{
struct interface_info *if_info;
unsigned int i;
+ char mac[20];
for (i = 0; i < sysinfo->n_interfaces; i++) {
if_info = sysinfo->interfaces[i];
@@ -43,7 +44,8 @@ void system_info_set_interface_address(unsigned int hwaddr_size,
}
}
- pb_log("Couldn't find interface matching %s\n", "foo");
+ mac_str(hwaddr, hwaddr_size, mac, sizeof(mac));
+ pb_log("Couldn't find interface matching %s\n", mac);
}
void system_info_register_interface(unsigned int hwaddr_size, uint8_t *hwaddr,
OpenPOWER on IntegriCloud