Corrected ssize_t log printing. Cleanup.