]> git.ipfire.org Git - thirdparty/kmod.git/commit - libkmod/libkmod-config.c
Log error on failed underscores(), moving it to shared/
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 9 Oct 2014 13:59:08 +0000 (10:59 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 9 Oct 2014 14:00:21 +0000 (11:00 -0300)
commit52c9c9905683c781e611a5bf3c61fcdc22ab5429
tree7ff0f6675fcf605feefc29c46469cb6e04f75ed1
parent2c5bc218bef191504e02a4f1e9071a2b5387f221
Log error on failed underscores(), moving it to shared/

Move underscores() to shared/. It's the same as alias_normalize(), but
it rather operates in place, with the same string being passed.

The difference now that it's in shared/ is that it's a non-logging
function.

This makes us a little bit more verbose: we don't accept partially
correct module and aliases names in kcmdline and in configuration files.
We log an error instead.
libkmod/libkmod-config.c
shared/util.c
shared/util.h