replace err.h macros with inline functions Passing NULL for the format is just easier with a function.