aboutsummaryrefslogtreecommitdiff
path: root/util-linux/dmesg.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/dmesg.c')
-rw-r--r--util-linux/dmesg.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c
index c21f84c9a..47f9f4474 100644
--- a/util-linux/dmesg.c
+++ b/util-linux/dmesg.c
@@ -53,21 +53,21 @@ int dmesg_main(int argc, char **argv)
53 case 'n': 53 case 'n':
54 cmd = 8; 54 cmd = 8;
55 if (optarg == NULL) 55 if (optarg == NULL)
56 usage(dmesg_usage); 56 show_usage();
57 level = atoi(optarg); 57 level = atoi(optarg);
58 break; 58 break;
59 case 's': 59 case 's':
60 if (optarg == NULL) 60 if (optarg == NULL)
61 usage(dmesg_usage); 61 show_usage();
62 bufsize = atoi(optarg); 62 bufsize = atoi(optarg);
63 break; 63 break;
64 default: 64 default:
65 usage(dmesg_usage); 65 show_usage();
66 } 66 }
67 } 67 }
68 68
69 if (optind < argc) { 69 if (optind < argc) {
70 goto end; 70 show_usage();
71 } 71 }
72 72
73 if (cmd == 8) { 73 if (cmd == 8) {
@@ -97,7 +97,4 @@ int dmesg_main(int argc, char **argv)
97 if (lastc != '\n') 97 if (lastc != '\n')
98 putchar('\n'); 98 putchar('\n');
99 return EXIT_SUCCESS; 99 return EXIT_SUCCESS;
100 end:
101 usage(dmesg_usage);
102 return EXIT_FAILURE;
103} 100}