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

Function cmd_add_usage

util/cbfstool/elogtool.c:253–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253static void cmd_add_usage(void)
254{
255 usage(argv0);
256
257 fprintf(stderr, "\n\nSpecific to ADD command:\n"
258 "\n"
259 "<event_type>: an hexadecimal number (0-255). Prefix '0x' is optional\n"
260 "[event_data]: (optional) a series of hexadecimal numbers. Must be:\n"
261 " - len(event_data) %% 2 == 0\n"
262 " - len(event_data) in bytes <= %zu\n"
263 "\n"
264 "Example:\n"
265 "%s add 0x16 01ABF0 # 01ABF0 is actually three bytes: 0x01, 0xAB and 0xF0\n"
266 "%s add 17 # 17 is in hexa\n",
267 ELOG_MAX_EVENT_DATA_SIZE, argv0, argv0
268 );
269}
270
271static int cmd_add_parse_args(uint8_t *type, uint8_t *data, size_t *data_size)
272{

Callers 1

cmd_addFunction · 0.85

Calls 2

fprintfFunction · 0.85
usageFunction · 0.70

Tested by

no test coverage detected