[Skiboot] [RFC PATCH 01/13] external/ffspart: Allow # comments in input file
Cyril Bur
cyril.bur at au1.ibm.com
Tue Aug 29 16:24:54 AEST 2017
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 77034775..73c02c40 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.14.1
More information about the Skiboot
mailing list