MCPcopy Create free account
hub / github.com/coreboot/coreboot / resolve_op_modifiers

Function resolve_op_modifiers

util/nvramtool/cli/opts.c:213–225  ·  view source on GitHub ↗

* resolve_op_modifiers * * If the user specifies multiple arguments that conflict with each other, * the last specified argument overrides previous conflicting arguments. ****************************************************************************/

Source from the content-addressed store, hash-verified

211 * the last specified argument overrides previous conflicting arguments.
212 ****************************************************************************/
213static void resolve_op_modifiers(void)
214{
215 if (nvramtool_op_modifiers[NVRAMTOOL_MOD_USE_CMOS_LAYOUT_FILE].found &&
216 nvramtool_op_modifiers[NVRAMTOOL_MOD_USE_CMOS_OPT_TABLE].found) {
217 if (nvramtool_op_modifiers[NVRAMTOOL_MOD_USE_CMOS_LAYOUT_FILE].found_seq >
218 nvramtool_op_modifiers[NVRAMTOOL_MOD_USE_CMOS_OPT_TABLE].found_seq)
219 nvramtool_op_modifiers
220 [NVRAMTOOL_MOD_USE_CMOS_OPT_TABLE].found = FALSE;
221 else
222 nvramtool_op_modifiers
223 [NVRAMTOOL_MOD_USE_CMOS_LAYOUT_FILE].found = FALSE;
224 }
225}
226
227/****************************************************************************
228 * sanity_check_args

Callers 1

parse_nvramtool_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected