lightd: cleanup printing logic