Hi tech@,

Since WSFONT_NAME_SIZE was switched from 16 to 32, account for the
change in wsfontload as well: tweak spacing and printf format string.

Comments? OK?

Index: usr.sbin/wsfontload/wsfontload.c
===================================================================
RCS file: /cvs/src/usr.sbin/wsfontload/wsfontload.c,v
retrieving revision 1.17
diff -u -p -r1.17 wsfontload.c
--- usr.sbin/wsfontload/wsfontload.c    15 Jun 2017 11:48:49 -0000      1.17
+++ usr.sbin/wsfontload/wsfontload.c    17 Jun 2017 08:20:20 -0000
@@ -147,7 +147,7 @@ main(int argc, char *argv[])
 
        if (list) {
                i = 0;
-               p = " # Name             Encoding  W  H";
+               p = " # Name                             Encoding  W  H";
                do {
                        f.index = i;
                        res = ioctl(wsfd, WSDISPLAYIO_LSFONT, &f);
@@ -157,7 +157,7 @@ main(int argc, char *argv[])
                                                puts(p);
                                                p = NULL;
                                        }
-                                       printf("%2d %-16s %8s %2d %2d\n",
+                                       printf("%2d %-32s %8s %2d %2d\n",
                                            f.index, f.name,
                                            encodings[f.encoding].name,
                                            f.fontwidth, f.fontheight);

Reply via email to