You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
value = sprom[offset];
break;
case VALUE_SUBP:
- desc = "Subsytem product ID";
+ desc = "Subsystem product ID";
if (sprom_rev == 4)
offset = SPROM4_SUBP;
else
case VALUE_ANTGA:
if (sprom_rev != 4) {
desc = "A PHY antenna gain";
- offset = SPROM_ANTENNA_GAIN + 1;
+ offset = SPROM_ANTENNA_GAIN;
} else {
desc = "Antenna 1 Gain";
offset = SPROM4_ANTENNA_GAIN;
prdata(" -g|--rawget OFF Get a value at a byte-OFFset\n");
prdata("\n");
prdata("Predefined values (for displaying (GET) or modification):\n");
- prdata(" --subp [0xFFFF] Subsytem product ID for PCI\n");
+ prdata(" --subp [0xFFFF] Subsystem product ID for PCI\n");
prdata(" --subv [0xFFFF] Subsystem vendor ID for PCI\n");
prdata(" --ppid [0xFFFF] Product ID for PCI\n");
prdata(" --bflhi [0xFFFF] High 16 bits of boardflags (only if spromversion > 1)\n");
}
if (strcmp(arg, template) == 0) {
if (param) {
- /* Skip the parameter on the next iteration. */
- (*pos)++;
if (*param == 0) {
prerror("%s needs a parameter\n", arg);
return ARG_ERROR;
}
+ /* Skip the parameter on the next iteration. */
+ (*pos)++;
}
return ARG_MATCH;
}
if (err)
goto error;
} else {
- prerror("Unrecognized argument: %s\n", argv[i]);
+ if (!parse_err)
+ prerror("Unrecognized argument: %s\n", argv[i]);
goto out_usage;
}
if (parse_err)