summaryrefslogtreecommitdiffstats
path: root/bin/bdf2fbcon
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-06-29 20:10:51 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-06-29 20:10:51 (EDT)
commit325113fc7792d4fd73aeea08a7f6b50361c4cb5a (patch)
tree4f02779b527a7907152257e89303090242be99ac /bin/bdf2fbcon
parente1e1395da4f2778fb41991115be1dae16dc74cae (diff)
write_fbcon(): Improve comments and fix undefined $_ error
Diffstat (limited to 'bin/bdf2fbcon')
-rwxr-xr-xbin/bdf2fbcon5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/bdf2fbcon b/bin/bdf2fbcon
index f602aba..e6cda04 100755
--- a/bin/bdf2fbcon
+++ b/bin/bdf2fbcon
@@ -203,10 +203,11 @@ sub write_fbcon
}
}
+ $output_fh->printf("/*\n");
foreach (@{$font->{'comments'}}) {
- $output_fh->printf("/* %s */\n", $_);
+ $output_fh->printf(" * %s\n", ($_ or ''));
}
- $output_fh->printf("/* Generated by bdf2fbcon */\n\n");
+ $output_fh->printf(" * Generated by bdf2fbcon\n */\n\n");
$output_fh->printf("#include <linux/font.h>\n\n");
$output_fh->printf("#define FONTDATAMAX %d\n\n",
$bytes_x * $font->{'height'} * 256);