[PATCH 01/11] Debug parsing hwaddr in NVRAM config read

Daniel M. Weeks weeksd2 at rpi.edu
Fri Apr 17 03:53:40 AEST 2020


This should never happen. If it does, it indicates either failing NVRAM
or a bug between storing and loading a hardware address.

Signed-off-by: Daniel M. Weeks <weeksd2 at rpi.edu>
---
 discover/platform-powerpc.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/discover/platform-powerpc.c b/discover/platform-powerpc.c
index dc4abb8..4c3c63a 100644
--- a/discover/platform-powerpc.c
+++ b/discover/platform-powerpc.c
@@ -300,8 +300,10 @@ static int parse_one_interface_config(struct config *config,
 	if (!tok)
 		goto out_err;
 
-	if (parse_hwaddr(ifconf, tok))
+	if (parse_hwaddr(ifconf, tok)) {
+		pb_debug("Failed to parse hwaddr from config\n");
 		goto out_err;
+	}
 
 	/* second token is the method */
 	tok = strtok_r(NULL, ",", &saveptr);
-- 
Daniel M. Weeks


-- 
Daniel M. Weeks
Lead HPC Developer
Center for Computational Innovations
Rensselaer Polytechnic Institute
Troy, NY 12180
518-276-4458


More information about the Petitboot mailing list