[PATCH 2/2] setterm: remove unnecessary translation string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Sami Kerola <kerolasa@xxxxxx>
---
 term-utils/setterm.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/term-utils/setterm.c b/term-utils/setterm.c
index cfe844f..77aabb6 100644
--- a/term-utils/setterm.c
+++ b/term-utils/setterm.c
@@ -231,7 +231,7 @@ static int parse_febg_color(const char *arg)
 	else
 		color = strtos32_or_err(arg, _("argument error"));
 	if (color < BLACK || DEFAULT < color || color == GREY)
-		errx(EXIT_FAILURE, _("argument error: %s"), arg);
+		errx(EXIT_FAILURE, "%s: %s", _("argument error"), arg);
 	return color;
 }
 
@@ -249,11 +249,11 @@ static int parse_ulhb_color(char **argv, int *optind)
 		color_name = argv[*optind - 1];
 	color = parse_color(color_name);
 	if (color == DEFAULT)
-		errx(EXIT_FAILURE, _("argument error: %s"), color_name);
+		errx(EXIT_FAILURE, "%s: %s", _("argument error"), color_name);
 	if (color == NOT_FOUND) {
 		color = strtos32_or_err(color_name, _("argument error"));
 		if (color < BLACK || DEFAULT < color)
-			errx(EXIT_FAILURE, _("argument error: %s"), color_name);
+			errx(EXIT_FAILURE, "%s: %s", _("argument error"), color_name);
 	}
 	if (bright && (color == BLACK || color == GREY))
 		errx(EXIT_FAILURE, _("argument error: bright %s is not supported"), color_name);
@@ -291,7 +291,7 @@ static int parse_blank(char **argv, char *optarg, int *optind)
 
 		ret = strtos32_or_err(arg, _("argument error"));
 		if (ret < 0 || BLANK_MAX < ret)
-			errx(EXIT_FAILURE, _("argument error: %s"), arg);
+			errx(EXIT_FAILURE, "%s: %s", _("argument error"), arg);
 		return ret;
 	}
 }
@@ -308,7 +308,7 @@ static int parse_powersave(const char *arg)
 		return VESA_BLANK_MODE_POWERDOWN;
 	else if (strcmp(arg, "off") == 0)
 		return VESA_BLANK_MODE_OFF;
-	errx(EXIT_FAILURE, _("argument error: %s"), arg);
+	errx(EXIT_FAILURE, "%s: %s", _("argument error"), arg);
 }
 
 static int parse_msglevel(const char *arg)
@@ -317,7 +317,7 @@ static int parse_msglevel(const char *arg)
 
 	ret = strtos32_or_err(arg, _("argument error"));
 	if (ret < CONSOLE_LEVEL_MIN || CONSOLE_LEVEL_MAX < ret)
-		errx(EXIT_FAILURE, _("argument error: %s"), arg);
+		errx(EXIT_FAILURE, "%s: %s", _("argument error"), arg);
 	return ret;
 }
 
@@ -331,7 +331,7 @@ static int parse_snap(char **argv, char *optarg, int *optind)
 		return 0;
 	ret = strtos32_or_err(arg, _("argument error"));
 	if (ret < 1)
-		errx(EXIT_FAILURE, _("argument error: %s"), arg);
+		errx(EXIT_FAILURE, "%s: %s", _("argument error"), arg);
 	return ret;
 }
 
@@ -365,7 +365,7 @@ static int parse_regtabs(char **argv, char *optarg, int *optind)
 		return DEFAULT_TAB_LEN;
 	ret = strtos32_or_err(arg, _("argument error"));
 	if (ret < 1 || TABS_MAX < ret)
-		errx(EXIT_FAILURE, _("argument error: %s"), arg);
+		errx(EXIT_FAILURE, "%s: %s", _("argument error"), arg);
 	return ret;
 }
 
@@ -379,7 +379,7 @@ static int parse_blength(char **argv, char *optarg, int *optind)
 		return 0;
 	ret = strtos32_or_err(arg, _("argument error"));
 	if (ret < 0 || BLENGTH_MAX < ret)
-		errx(EXIT_FAILURE, _("argument error: %s"), arg);
+		errx(EXIT_FAILURE, "%s: %s", _("argument error"), arg);
 	return ret;
 }
 
-- 
2.8.2

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux