minor fixes (printf formats, conditionalize printing of erase message)