[Skiboot] [PATCH 01/15] external/ffspart: Allow # comments in input file

Cyril Bur cyril.bur at au1.ibm.com
Thu Mar 15 16:58:13 AEDT 2018


Signed-off-by: Cyril Bur <cyril.bur at au1.ibm.com>
---
 external/ffspart/ffspart.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/external/ffspart/ffspart.c b/external/ffspart/ffspart.c
index 0fe58407..309f9b68 100644
--- a/external/ffspart/ffspart.c
+++ b/external/ffspart/ffspart.c
@@ -224,6 +224,10 @@ int main(int argc, char *argv[])
 		int side = -1;
 		uint32_t pbase, psize, pactual = 0;
 
+		/* Inline comments in input file */
+		if (line[0] == '#')
+			continue;
+
 		if (line[strlen(line) - 1] == '\n')
 			line[strlen(line) - 1] = '\0';
 
-- 
2.16.2



More information about the Skiboot mailing list