[PATCH v3 01/23] log: Fix missing negation of ENOMEM