[lib] deployment: small fix in print_state_compact