Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/pgoyette-compat]: src/sys/kern Better diagnostic message
details: https://anonhg.NetBSD.org/src/rev/8bbe11df8c0f
branches: pgoyette-compat
changeset: 830858:8bbe11df8c0f
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Wed Oct 03 22:53:52 2018 +0000
description:
Better diagnostic message
diffstat:
sys/kern/kern_module.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 44465331cdfd -r 8bbe11df8c0f sys/kern/kern_module.c
--- a/sys/kern/kern_module.c Wed Oct 03 22:50:50 2018 +0000
+++ b/sys/kern/kern_module.c Wed Oct 03 22:53:52 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_module.c,v 1.130.2.23 2018/09/09 11:54:10 pgoyette Exp $ */
+/* $NetBSD: kern_module.c,v 1.130.2.24 2018/10/03 22:53:52 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.130.2.23 2018/09/09 11:54:10 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.130.2.24 2018/10/03 22:53:52 pgoyette Exp $");
#define _MODULE_INTERNAL
@@ -1453,8 +1453,8 @@
return error;
}
if (size != sizeof(modinfo_t **)) {
- module_error("`link_set_modules' section wrong size %zu != %zu",
- size, sizeof(modinfo_t **));
+ module_error("`link_set_modules' section wrong size "
+ "(got %zu, wanted %zu)", size, sizeof(modinfo_t **));
return ENOEXEC;
}
mod->mod_info = *(modinfo_t **)addr;
Home |
Main Index |
Thread Index |
Old Index