modprobe: prefix libkmod messages to stderr with modprobe:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 1 Nov 2012 14:24:58 +0000 (12:24 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 1 Nov 2012 14:46:03 +0000 (12:46 -0200)
commit86cc1f2328d548e28eb18b5e5f4cab7f7190a023
tree58747005e698c4cae04e48b4c105f58176c8cd43
parent1e947e3c8749e6ce0d80be372de9f5e670bd1802
modprobe: prefix libkmod messages to stderr with modprobe:

When we are logging to stderr we are previously relying on libkmod
sending it to the default location in case we are not asked to log to
syslog. The problem is that modprobe may be used in scripts that don't
want to log to syslog (since they are not daemons, like scripts to
generate initrd) and then it's difficult to know where the message comes
from.

This patch treats only the messages coming from libkmod.
tools/modprobe.c