| 58 | }; |
| 59 | |
| 60 | static void usage(char *invoked_as) |
| 61 | { |
| 62 | fprintf(stderr, "elogtool: edit elog events\n\n" |
| 63 | "USAGE:\n" |
| 64 | "\t%s COMMAND [-f <filename>]\n\n" |
| 65 | "where, COMMAND is:\n" |
| 66 | " list lists all the event logs in human readable format\n" |
| 67 | " clear clears all the event logs\n" |
| 68 | " add <event_type> [event_data] add an entry to the event log\n" |
| 69 | "\n" |
| 70 | "ARGS\n" |
| 71 | "-f, --file <filename> File that holds event log partition.\n" |
| 72 | " If empty it will try to read/write from/to\n" |
| 73 | " the " ELOG_RW_REGION_NAME " using flashrom.\n" |
| 74 | "-U, --utc Print timestamps in UTC time zone\n" |
| 75 | "-h, --help Print this help\n", |
| 76 | invoked_as); |
| 77 | } |
| 78 | |
| 79 | /* |
| 80 | * If filename is empty, read RW_ELOG from flashrom. |
no test coverage detected