[PATCH 0/6] logging refactoring

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch series creates a common.h and populates it with some function
prototypes and logging stuff.

The changes here are fairly minor and mostly consist of switching over to use
the new logging macros. Probably the most helpful one is CLD_DEBUG, which only
evaluates its arguments if log->verbose is set. CLD_INFO, CLD_WARN, CLD_ERR
and CLD_CRIT simply call the log function with the appropriate log level, in a
shorter amount of code.

I also eliminated some cases where we had to pass both a logging function and
a verbosity level. We only need to pass a pointer to a cld_log struct now.
This should facilitate some code sharing and hopefully improve stuff.

regards,
C.

--
To unsubscribe from this list: send the line "unsubscribe hail-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Fedora Clound]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux