diff options
author | Sami Kerola | 2016-05-08 22:17:18 +0200 |
---|---|---|
committer | Karel Zak | 2016-05-09 12:57:01 +0200 |
commit | c8a6f83e85bf33821546609614d7414ee23702a3 (patch) | |
tree | 1fa21c2874ec6d9bf1bdbbb5e4b91257ebaea4e2 /term-utils | |
parent | setterm: de-duplicate color option string parsing (diff) | |
download | kernel-qcow2-util-linux-c8a6f83e85bf33821546609614d7414ee23702a3.tar.gz kernel-qcow2-util-linux-c8a6f83e85bf33821546609614d7414ee23702a3.tar.xz kernel-qcow2-util-linux-c8a6f83e85bf33821546609614d7414ee23702a3.zip |
setterm: remove unnecessary translation string
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'term-utils')
-rw-r--r-- | term-utils/setterm.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/term-utils/setterm.c b/term-utils/setterm.c index 18c4f1f58..232f38948 100644 --- a/term-utils/setterm.c +++ b/term-utils/setterm.c @@ -213,7 +213,7 @@ static int parse_febg_color(const char *arg) color = strtos32_or_err(arg, _("argument error")); if (!is_valid_color(color) || color == GREY) - errx(EXIT_FAILURE, _("argument error: %s"), arg); + errx(EXIT_FAILURE, "%s: %s", _("argument error"), arg); return color; } @@ -234,7 +234,7 @@ static int parse_ulhb_color(char **argv, int *optind) if (color < 0) color = strtos32_or_err(color_name, _("argument error")); if (!is_valid_color(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); @@ -271,7 +271,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; } } @@ -288,7 +288,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) @@ -297,7 +297,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; } @@ -311,7 +311,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; } @@ -345,7 +345,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; } @@ -359,7 +359,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; } |