[PATCH] discover/sysinfo: Fix useless error message

Samuel Mendoza-Jonas sam at mendozajonas.com
Tue Jan 31 15:17:15 AEDT 2017


Signed-off-by: Samuel Mendoza-Jonas <sam at mendozajonas.com>
---
 discover/sysinfo.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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,
-- 
2.11.0



More information about the Petitboot mailing list