Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Aug 2019 16:19:58 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r351427 - stable/11/usr.bin/vtfontcvt
Message-ID:  <201908231619.x7NGJwUt098396@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Fri Aug 23 16:19:58 2019
New Revision: 351427
URL: https://svnweb.freebsd.org/changeset/base/351427

Log:
  MFC r305815: vtfontcvt: remove superfluous newlines in errx messages

Modified:
  stable/11/usr.bin/vtfontcvt/vtfontcvt.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.bin/vtfontcvt/vtfontcvt.c
==============================================================================
--- stable/11/usr.bin/vtfontcvt/vtfontcvt.c	Fri Aug 23 16:18:25 2019	(r351426)
+++ stable/11/usr.bin/vtfontcvt/vtfontcvt.c	Fri Aug 23 16:19:58 2019	(r351427)
@@ -122,7 +122,7 @@ add_mapping(struct glyph *gl, unsigned int c, unsigned
 	ml = &maps[map_idx];
 	if (TAILQ_LAST(ml, mapping_list) != NULL &&
 	    TAILQ_LAST(ml, mapping_list)->m_char >= c)
-		errx(1, "Bad ordering at character %u\n", c);
+		errx(1, "Bad ordering at character %u", c);
 	TAILQ_INSERT_TAIL(ml, mp, m_list);
 
 	map_count[map_idx]++;
@@ -143,7 +143,7 @@ dedup_mapping(unsigned int map_idx)
 		while (mp_normal->m_char < mp_bold->m_char)
 			mp_normal = TAILQ_NEXT(mp_normal, m_list);
 		if (mp_bold->m_char != mp_normal->m_char)
-			errx(1, "Character %u not in normal font!\n",
+			errx(1, "Character %u not in normal font!",
 			    mp_bold->m_char);
 		if (mp_bold->m_glyph != mp_normal->m_glyph)
 			continue;
@@ -217,7 +217,7 @@ parse_bitmap_line(uint8_t *left, uint8_t *right, unsig
 	unsigned int i, subline;
 
 	if (dwidth != width && dwidth != width * 2)
-		errx(1, "Bitmap with unsupported width %u!\n", dwidth);
+		errx(1, "Bitmap with unsupported width %u!", dwidth);
 
 	/* Move pixel data right to simplify splitting double characters. */
 	line >>= (howmany(dwidth, 8) * 8) - dwidth;
@@ -234,7 +234,7 @@ parse_bitmap_line(uint8_t *left, uint8_t *right, unsig
 			*p++ = subline >> 8;
 			*p = subline;
 		} else {
-			errx(1, "Unsupported wbytes %u!\n", wbytes);
+			errx(1, "Unsupported wbytes %u!", wbytes);
 		}
 
 		line >>= width;
@@ -272,7 +272,7 @@ parse_bdf(FILE *fp, unsigned int map_idx)
 			 */
 			for (i = 0; i < height; i++) {
 				if ((ln = fgetln(fp, &length)) == NULL)
-					errx(1, "Unexpected EOF!\n");
+					errx(1, "Unexpected EOF!");
 				ln[length - 1] = '\0';
 				if (strcmp(ln, "ENDCHAR") == 0) {
 					memset(bytes + i * wbytes, 0,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908231619.x7NGJwUt098396>