smp_discover: fix option parsing for -n/-p (#1094405)
Hi,
If someone better understands upstream's intent, feel free to suggest a better patch. Here's my naive attempt at fixing the parser.
The new method is broken and passing e.g. -p 10 results in the last 10 phys being skipped, not only the first 10. Let's drop the new code for now and restore the working version. This reverts part of https://github.com/doug-gilbert/smp_utils/commit/5e9dd3dbab9f7fc85e2816ab2eb62bc92b068cc1.
Edited by Louis Sautier