From: Francesco Cosoleto Date: Fri, 26 Mar 2010 00:13:29 +0000 (+0100) Subject: blockdev: reduce usage text width X-Git-Tag: v2.18-rc1~153 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eaa7716fae98be329db877bf137ad98b4335760f;p=thirdparty%2Futil-linux.git blockdev: reduce usage text width Use spaces in usage text instead of tabs and reduce the distance between option names and descriptions. This helps to minimize problems due to limited number of columns and translated texts which take up more space than English. Signed-off-by: Francesco Cosoleto --- diff --git a/disk-utils/blockdev.c b/disk-utils/blockdev.c index 288c102dfd..eeaf2f5c67 100644 --- a/disk-utils/blockdev.c +++ b/disk-utils/blockdev.c @@ -183,15 +183,15 @@ usage(void) { fputc('\n', stderr); fprintf(stderr, _("Available commands:\n")); - fprintf(stderr, "\t%-30s %s\n", "--getsz", + fprintf(stderr, " %-25s %s\n", "--getsz", _("get size in 512-byte sectors")); for (i = 0; i < ARRAY_SIZE(bdcms); i++) { if (bdcms[i].argname) - fprintf(stderr, "\t%s %-*s %s\n", bdcms[i].name, - (int) (29 - strlen(bdcms[i].name)), + fprintf(stderr, " %s %-*s %s\n", bdcms[i].name, + (int) (24 - strlen(bdcms[i].name)), bdcms[i].argname, _(bdcms[i].help)); else - fprintf(stderr, "\t%-30s %s\n", bdcms[i].name, + fprintf(stderr, " %-25s %s\n", bdcms[i].name, _(bdcms[i].help)); } fputc('\n', stderr);