diff options
| author | kamil <kamil@NetBSD.org> | 2020-01-30 07:58:33 +0000 |
|---|---|---|
| committer | kamil <kamil@NetBSD.org> | 2020-01-30 07:58:33 +0000 |
| commit | e56e945002ee2c67e7d66e07ad9c77591a78e15c (patch) | |
| tree | bd8e0d131671573c794f4f58c7cbae923a0fe589 /sys/modules/examples/panic_string | |
| parent | b72ea49af6448a1e6d780cbd36b8f16496f9f8f6 (diff) | |
Align major numbers in example modules with sys/conf/majors
Patch submitted by: Aditya Vardhan Padala (silv3r)
Diffstat (limited to 'sys/modules/examples/panic_string')
| -rw-r--r-- | sys/modules/examples/panic_string/panic_string.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 <sys/cdefs.h> -__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 <sys/param.h> #include <sys/types.h> @@ -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: |
