Fixed missing ending ; for printf statements