Add return value to set_prio function.
Display a warning if the function fails.