coverity/74718: invalid FUNC_ATTR_NONNULL_ARG

- avoid null passed to ELOG format string
- receive (char *) internally
- modify identifier names for consistency
- edit comments for concision and consistency