File: blacklist-warn.diff

package info (click to toggle)
module-init-tools 3.12-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 4,296 kB
  • ctags: 1,264
  • sloc: sh: 7,010; ansic: 6,584; makefile: 1,114
file content (14 lines) | stat: -rw-r--r-- 390 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/modprobe.c
+++ b/modprobe.c
@@ -558,8 +558,10 @@ static  int
 find_blacklist(const char *modname, const struct module_blacklist *blacklist)
 {
 	while (blacklist) {
-		if (streq(blacklist->modulename, modname))
+		if (streq(blacklist->modulename, modname)) {
+			warn("Not loading blacklisted module %s\n", modname);
 			return 1;
+		}
 		blacklist = blacklist->next;
 	}
 	return 0;