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

Function print_usage

util/ectool/ectool.c:44–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void print_usage(const char *name)
45{
46 printf("usage: %s [-vh?Vidq] [-w 0x<addr> -z 0x<data>]\n", name);
47 printf("\n"
48 " -v | --version: print the version\n"
49 " -h | --help: print this help\n\n"
50 " -V | --verbose: print debug information\n"
51 " -p | --getports: get EC data & cmd ports from /proc/ioports\n"
52 " -d | --dump: print RAM\n"
53 " -i | --idx: print IDX RAM & RAM\n"
54 " -q | --query: print query byte\n"
55 " -w <addr in hex> write to addr\n"
56 " -z <data in hex> write to data\n"
57 "\n");
58 exit(1);
59}
60
61int verbose = 0, dump_idx = 0, dump_ram = 0, dump_query = 0, get_ports = 0;
62

Callers 1

mainFunction · 0.70

Calls 2

printfFunction · 0.85
exitFunction · 0.85

Tested by

no test coverage detected