summaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/fbset.c9
-rw-r--r--util-linux/fdflush.c4
-rw-r--r--util-linux/freeramdisk.c8
-rw-r--r--util-linux/mount.c2
4 files changed, 10 insertions, 13 deletions
diff --git a/util-linux/fbset.c b/util-linux/fbset.c
index 1f471da..4e5609e 100644
--- a/util-linux/fbset.c
+++ b/util-linux/fbset.c
@@ -104,9 +104,9 @@ struct cmdoptions_t {
"-hsync", 1, CMD_HSYNC}, {
"-vsync", 1, CMD_VSYNC}, {
"-laced", 1, CMD_LACED}, {
- "-double", 1, CMD_DOUBLE},
+ "-double", 1, CMD_DOUBLE}, {
+ "--help", 0, CMD_HELP}, {
#ifdef BB_FEATURE_FBSET_FANCY
- {
"--help", 0, CMD_HELP}, {
"-all", 0, CMD_ALL}, {
"-xres", 1, CMD_XRES}, {
@@ -130,9 +130,8 @@ struct cmdoptions_t {
"-bcast", 1, CMD_BCAST}, {
"-rgba", 1, CMD_RGBA}, {
"-step", 1, CMD_STEP}, {
- "-move", 1, CMD_MOVE},
+ "-move", 1, CMD_MOVE}, {
#endif
- {
0, 0, 0}
};
@@ -217,7 +216,7 @@ static void showmode(struct fb_var_screeninfo *v)
printf("\trgba %u/%u,%u/%u,%u/%u,%u/%u\n", v->red.length,
v->red.offset, v->green.length, v->green.offset, v->blue.length,
v->blue.offset, v->transp.length, v->transp.offset);
- printf("endmode\n");
+ printf("endmode\n\n");
}
static void fbset_usage(void)
diff --git a/util-linux/fdflush.c b/util-linux/fdflush.c
index 201cea8..56ea224 100644
--- a/util-linux/fdflush.c
+++ b/util-linux/fdflush.c
@@ -33,8 +33,8 @@ extern int fdflush_main(int argc, char **argv)
int value;
int fd;
- if (argc <= 1 || **(argv++) == '-') {
- usage("fdflush device\n");
+ if (argc <= 1 || **(++argv) == '-') {
+ usage("fdflush device\n\nForce floppy disk drive to detect disk change\n");
}
fd = open(*argv, 0);
diff --git a/util-linux/freeramdisk.c b/util-linux/freeramdisk.c
index 06937a7..9636dbd 100644
--- a/util-linux/freeramdisk.c
+++ b/util-linux/freeramdisk.c
@@ -34,7 +34,7 @@
static const char freeramdisk_usage[] =
"freeramdisk DEVICE\n\n"
- "Frees all memory used by the specified ramdisk.\n";
+ "Free all memory used by the specified ramdisk.\n";
extern int
freeramdisk_main(int argc, char **argv)
@@ -42,7 +42,7 @@ freeramdisk_main(int argc, char **argv)
char rname[256] = "/dev/ram";
int f;
- if (argc > 2 || ( argv[1] && *argv[1] == '-')) {
+ if (argc < 2 || ( argv[1] && *argv[1] == '-')) {
usage(freeramdisk_usage);
}
@@ -50,10 +50,10 @@ freeramdisk_main(int argc, char **argv)
strcpy(rname, argv[1]);
if ((f = open(rname, O_RDWR)) == -1) {
- fatalError( "freeramdisk: cannot open %s: %s", rname, strerror(errno));
+ fatalError( "freeramdisk: cannot open %s: %s\n", rname, strerror(errno));
}
if (ioctl(f, BLKFLSBUF) < 0) {
- fatalError( "freeramdisk: failed ioctl on %s: %s", rname, strerror(errno));
+ fatalError( "freeramdisk: failed ioctl on %s: %s\n", rname, strerror(errno));
}
/* Don't bother closing. Exit does
* that, so we can save a few bytes */
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 329c077..972e506 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -83,8 +83,6 @@ static const char mount_usage[] = "\tmount [flags]\n"
"\tsuid / nosuid:\tAllow set-user-id-root programs / disallow them.\n"
"\tremount: Re-mount a currently-mounted filesystem, changing its flags.\n"
"\tro / rw: Mount for read-only / read-write.\n"
- "\t"
-
"There are EVEN MORE flags that are specific to each filesystem.\n"
"You'll have to see the written documentation for those.\n";