aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/dmesg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c
index a63fa3d39..9096621b0 100644
--- a/util-linux/dmesg.c
+++ b/util-linux/dmesg.c
@@ -28,7 +28,7 @@ static inline _syscall3(int,klog,int,type,char *,b,int,len)
const char dmesg_usage[] = "dmesg";
int
-dmesg_main(struct FileInfo * info, int argc, char * * argv)
+dmesg_main(int argc, char * * argv)
{
char buf[4096];
@@ -50,7 +50,7 @@ dmesg_main(struct FileInfo * info, int argc, char * * argv)
break;
case '?':
default:
- usage(dmesg_usage);
+ fprintf(stderr, "%s\n", dmesg_usage);
exit(1);
}
}
@@ -58,7 +58,7 @@ dmesg_main(struct FileInfo * info, int argc, char * * argv)
argv += optind;
if (argc > 1) {
- usage(dmesg_usage);
+ fprintf(stderr, "%s\n", dmesg_usage);
exit(1);
}