Move more logging to common files
authorAlan Jenkins <alan@alan-eeepc.jenkins>
Thu, 12 Mar 2009 11:45:13 +0000 (11:45 +0000)
committerAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Thu, 12 Mar 2009 11:45:13 +0000 (11:45 +0000)
commit5301baefc3332d36b917a02015abb4a2d195a44b
treebbe55738661e6cee86e3d82dba7a338cdba9d175
parent60f50f7fb443fc5cd6a285f99edcea94d2c09d6d
Move more logging to common files

- Add info() which prints to stdout if verbose == 1.
- Add error() for rmmod.
- Convert modprobe and depmod to use info().
- Convert rmmod to use "logging.h".

This removes multiple different implementations, without changing the
actual output in any way.  Converting rmmod will also make it possible
to change rmmod in future, to use common functions which call NOFAIL.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Makefile.am
depmod.c
logging.c
logging.h
modprobe.c
moduleops.h
moduleops_core.c
rmmod.c