logging.c: fix start/end values