commit | bcfb57e25a176be951f862490a5ee3019d3153b8 | [log] [tgz] |
---|---|---|
author | Doug Ledford <dledford@redhat.com> | Sun Oct 14 17:03:00 2012 +0000 |
committer | Roland Dreier <roland@purestorage.com> | Mon May 06 11:50:50 2013 -0700 |
tree | 72e0b50c5c1acef081f8653162aac12f38681a35 | |
parent | d13cc4f46c55eabaf22aad9b19f04d4ed2e88fcf [diff] |
devinfo: Don't allow port == 0 as an option We special case port == 0 to mean all ports, and it's the default, so if a user passes in 0, they likely meant 1 instead. Throw an error because they probably didn't mean to specify the default behavior of scan all ports. Path of least surprise and all that. Signed-off-by: Doug Ledford <dledford@redhat.com> Signed-off-by: Roland Dreier <roland@purestorage.com>