[lvm-devel] [PATCH] #define and use INTERNAL_ERROR

Alasdair G Kergon agk at redhat.com
Thu Dec 3 01:14:38 UTC 2009


On Tue, Dec 01, 2009 at 03:18:33PM +0100, Peter Rockai wrote:
> patch attached to #define an INTERNAL_ERROR macro and use it throughout
> LVM. There's a couple of internal errors in libdm as well, and it seems
> that the log_error used by libdm actually comes from lib/ (i.e. LVM) so
> it may make sense to convert those as well.
 
Ack.

Each source file includes (normally via another header) either
dm-logging.h or lvm-logging.h which deals with routing the messages to
the right logging function and with the right set of parameters.  log.h
contains the part they have in common.

Alasdair




More information about the lvm-devel mailing list