kmod/tools
Lucas De Marchi c89d219884 depmod: Add better error messages when facing loops
Since now depmod fails when there are module loops, let's at least give
better error messages, printing the loops we found. Since we may have
more than 1 loop, just printing the modules that are in loop is not
very clear.

Assuming as an example 2 independent loops, this is how the new messages
compare to the old ones:

Before:
	depmod: ERROR: Found 5 modules in dependency cycles!
	depmod: ERROR: /tmp/test-kmod//lib/modules/3.14.4-1-ARCH/kernel/moduleE.ko in dependency cycle!
	depmod: ERROR: /tmp/test-kmod//lib/modules/3.14.4-1-ARCH/kernel/moduleB.ko in dependency cycle!
	depmod: ERROR: /tmp/test-kmod//lib/modules/3.14.4-1-ARCH/kernel/moduleC.ko in dependency cycle!
	depmod: ERROR: /tmp/test-kmod//lib/modules/3.14.4-1-ARCH/kernel/moduleD.ko in dependency cycle!
	depmod: ERROR: /tmp/test-kmod//lib/modules/3.14.4-1-ARCH/kernel/moduleA.ko in dependency cycle!

After:
	depmod: ERROR: Found 5 modules in dependency cycles!
	depmod: ERROR: Cycle detected: moduleE -> moduleD -> moduleE
	depmod: ERROR: Cycle detected: moduleB -> moduleC -> moduleA -> moduleB
2014-05-30 09:43:30 -03:00
..
.gitignore tools: Use test/kmod instead of kmod-nolib 2013-07-02 21:15:54 -03:00
Makefile build-sys: add small redirecting Makefiles 2014-03-06 01:59:58 -03:00
depmod.c depmod: Add better error messages when facing loops 2014-05-30 09:43:30 -03:00
insmod.c Update copyright notices 2013-01-16 11:27:45 -02:00
kmod.c tools: add static-nodes tool 2013-04-16 23:10:36 -03:00
kmod.h tools: add static-nodes tool 2013-04-16 23:10:36 -03:00
log.c Add format attribute and fix issues 2013-04-21 16:17:12 -03:00
log.h Add format attribute and fix issues 2013-04-21 16:17:12 -03:00
lsmod.c Update copyright notices 2013-01-16 11:27:45 -02:00
modinfo.c Update copyright notices 2013-01-16 11:27:45 -02:00
modprobe.c modprobe: don't check refcount with remove command 2013-05-02 23:30:44 -03:00
rmmod.c Remove "rmmod -w" documentation and getopt entry 2014-01-26 18:00:23 -02:00
static-nodes.c static-nodes: create parent directories of output file 2013-07-15 12:46:12 -03:00