log file usage. Also fixing a few segfaults caused by passing the fixed string object to a "%s" formatter in printfs.