Skip to content

smp_discover: fix option parsing for -n/-p (#1094405)

Louis Sautier requested to merge sbraz-guest/smp-utils:fix_option_parsing into master

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.

Bug: https://github.com/doug-gilbert/smp_utils/issues/4

Edited by Louis Sautier

Merge request reports

Loading