[PATCH v3 5/8] log: Add _perror() logging function variants