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/139ba265ee3b
branches:  trunk
changeset: 746045:139ba265ee3b
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 cec6cb35dcfd -r 139ba265ee3b 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