[flashrom-gerrit] Change in flashrom[master]: print.c: Dedup 'test_state_to_text()' logic