aboutsummaryrefslogtreecommitdiff
path: root/toys/lsb/dmesg.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/lsb/dmesg.c')
-rw-r--r--toys/lsb/dmesg.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/toys/lsb/dmesg.c b/toys/lsb/dmesg.c
index e54a9e11..8d73513b 100644
--- a/toys/lsb/dmesg.c
+++ b/toys/lsb/dmesg.c
@@ -21,16 +21,15 @@ config DMESG
-c Clear the ring buffer after printing.
*/
+#define FOR_dmesg
#include "toys.h"
#include <sys/klog.h>
-DEFINE_GLOBALS(
+GLOBALS(
long level;
long size;
)
-#define TT this.dmesg
-
void dmesg_main(void)
{
// For -n just tell kernel to which messages to keep.