coreboot-kgpe-d16/util/cbfstool/eventlog.h
Wojciech Macek 9edaccd922 util/cbfstool/eventlog: Use LocalTime or UTC timestamps
Add a new flag "--utc" to allow the user to choose if
elogtool should print timestamps in Local Time or in UTC.
It is useful for generating automated crash reports
including all system logs when users are located in
various regions (timezones).

Add information about timezone to timestamps printed
on the console.

Signed-off-by: Wojciech Macek <wmacek@google.com>
Change-Id: I30ba0e17c67ab4078e3a7137ece69009a63d68fa
Reviewed-on: https://review.coreboot.org/c/coreboot/+/73201
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jakub Czapiga <jacz@semihalf.com>
2023-03-02 13:05:35 +00:00

21 lines
459 B
C

/* SPDX-License-Identifier: BSD-3-Clause */
#ifndef EVENTLOG_H_
#define EVENTLOG_H_
#include <stdint.h>
struct event_header;
struct buffer;
enum eventlog_timezone {
EVENTLOG_TIMEZONE_LOCALTIME = 0,
EVENTLOG_TIMEZONE_UTC,
};
void eventlog_print_event(const struct event_header *event, int count,
enum eventlog_timezone tz);
int eventlog_init_event(const struct buffer *buf, uint8_t type,
const void *data, int data_size);
#endif // EVENTLOG_H_