From e56e945002ee2c67e7d66e07ad9c77591a78e15c Mon Sep 17 00:00:00 2001 From: kamil Date: Thu, 30 Jan 2020 07:58:33 +0000 Subject: Align major numbers in example modules with sys/conf/majors Patch submitted by: Aditya Vardhan Padala (silv3r) --- sys/modules/examples/panic_string/panic_string.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/modules/examples/panic_string/panic_string.c') diff --git a/sys/modules/examples/panic_string/panic_string.c b/sys/modules/examples/panic_string/panic_string.c index f27cde06b6c..44b9c2eecae 100644 --- a/sys/modules/examples/panic_string/panic_string.c +++ b/sys/modules/examples/panic_string/panic_string.c @@ -1,4 +1,4 @@ -/* $NetBSD: panic_string.c,v 1.1 2018/05/29 16:53:56 kamil Exp $ */ +/* $NetBSD: panic_string.c,v 1.2 2020/01/30 07:58:33 kamil Exp $ */ /*- * Copyright (c) 2018 The NetBSD Foundation, Inc. @@ -28,7 +28,7 @@ #include -__KERNEL_RCSID(0, "$NetBSD: panic_string.c,v 1.1 2018/05/29 16:53:56 kamil Exp $"); +__KERNEL_RCSID(0, "$NetBSD: panic_string.c,v 1.2 2020/01/30 07:58:33 kamil Exp $"); #include #include @@ -46,7 +46,7 @@ __KERNEL_RCSID(0, "$NetBSD: panic_string.c,v 1.1 2018/05/29 16:53:56 kamil Exp $ * user input. * * To use this device you need to do: - * mknod /dev/panic c 210 0 + * mknod /dev/panic c 351 0 * * To write to the device you might need: * chmod 666 /dev/panic @@ -173,7 +173,7 @@ panic_string_modcmd(modcmd_t cmd, void *arg __unused) { /* The major should be verified and changed if needed to avoid * conflicts with other devices. */ - int cmajor = 210, bmajor = -1; + int cmajor = 351, bmajor = -1; switch (cmd) { case MODULE_CMD_INIT: -- cgit