Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Improve error message - at least indicate which val...
details: https://anonhg.NetBSD.org/src/rev/54a69457895d
branches: trunk
changeset: 1008365:54a69457895d
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Fri Mar 20 23:09:01 2020 +0000
description:
Improve error message - at least indicate which value comes from the
module vs which was requested/wanted by the caller.
diffstat:
sys/kern/kern_module.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 8ead98fb7ff6 -r 54a69457895d sys/kern/kern_module.c
--- a/sys/kern/kern_module.c Fri Mar 20 23:01:24 2020 +0000
+++ b/sys/kern/kern_module.c Fri Mar 20 23:09:01 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_module.c,v 1.147 2020/02/22 19:51:57 pgoyette Exp $ */
+/* $NetBSD: kern_module.c,v 1.148 2020/03/20 23:09:01 pgoyette Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.147 2020/02/22 19:51:57 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.148 2020/03/20 23:09:01 pgoyette Exp $");
#define _MODULE_INTERNAL
@@ -136,8 +136,8 @@
static void
module_incompat(const modinfo_t *mi, int modclass)
{
- module_error("incompatible module class for `%s' (%d != %d)",
- mi->mi_name, modclass, mi->mi_class);
+ module_error("incompatible module class %d for `%s' (wanted %d)",
+ mi->mi_class, mi->mi_name, modclass);
}
struct module *
Home |
Main Index |
Thread Index |
Old Index