diff mbox series

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

Message ID f0de3cba3b35dd485f50d3d90ec1d4a29c93e16a.1587059209.git.weeksd2@rpi.edu
State New
Headers show
Series IB netboot 1/3: flexible hwaddrs | expand

Commit Message

Daniel M. Weeks April 16, 2020, 5:53 p.m. UTC
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@rpi.edu>
---
 discover/platform-powerpc.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

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);