log.c: Use parameter passed to macro instead of the equivalent local variable