Handle old-style /proc/sched_debug format, code cleanups, tighten up
parameter range checking