mirror of
https://xff.cz/git/u-boot/
synced 2025-10-27 16:43:32 +01:00
tools/file2include: avoid incorrect comments
Avoid creating incorrect comments like /* ...*/... */ by printing '.' instead of '*' inside comments. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
committed by
Tom Rini
parent
4a8e72954e
commit
b14619ba62
@@ -84,7 +84,7 @@ int main(int argc, char *argv[])
|
|||||||
printf("\\x%02x", buf[j]);
|
printf("\\x%02x", buf[j]);
|
||||||
printf("\"}, /* ");
|
printf("\"}, /* ");
|
||||||
for (j = i; j < i + BLOCK_SIZE && j < count; ++j) {
|
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]);
|
printf("%c", buf[j]);
|
||||||
else
|
else
|
||||||
printf(".");
|
printf(".");
|
||||||
|
|||||||
Reference in New Issue
Block a user