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

Function usage

util/post/post.c:12–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#define POST_DEFAULT_IO_PORT 0x80
11
12void usage(char *progname, const char *error, ...)
13{
14 printf("Usage: %s <VALUE> [PORT]\n", progname);
15 printf("The VALUE argument is an integer between 0x00 and 0xff\n");
16 printf("The PORT argument is an integer between 0x00 and 0xffff\n");
17
18 if (error) {
19 va_list args;
20
21 va_start(args, error);
22 vprintf(error, args);
23 va_end(args);
24 };
25}
26
27void check_int(long val, int min, int max, int err, char *string, char *endptr,
28 char *progname)

Callers 2

check_intFunction · 0.70
mainFunction · 0.70

Calls 2

printfFunction · 0.85
vprintfFunction · 0.85

Tested by

no test coverage detected