[U-Boot] [PATCH 1/1] tools/file2include: avoid incorrect comments
Heinrich Schuchardt
xypron.glpk at gmx.de
Mon May 7 21:00:22 UTC 2018
Avoid creating incorrect comments like /* ...*/... */ by printing
'.' instead of '*' inside comments.
Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
tools/file2include.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/file2include.c b/tools/file2include.c
index e602f937f15..b98af30a728 100644
--- a/tools/file2include.c
+++ b/tools/file2include.c
@@ -84,7 +84,7 @@ int main(int argc, char *argv[])
printf("\\x%02x", buf[j]);
printf("\"}, /* ");
for (j = i; j < i + BLOCK_SIZE && j < count; ++j) {
- if (buf[j] >= 0x20 && buf[j] <= 0x7e)
+ if (buf[j] != '*' && buf[j] >= 0x20 && buf[j] <= 0x7e)
printf("%c", buf[j]);
else
printf(".");
--
2.17.0
More information about the U-Boot
mailing list