Skip to content

Commit

Permalink
plugins/virtium: use time_t for time_stamp values
Browse files Browse the repository at this point in the history
In the vtview_log structs, time_t should be used for any time_stamp
values instead of long. This ensures correct builds on 32-bit
architectures even with 64-bit time_t (e.g. armhf on Ubuntu).

Signed-off-by: Heitor Alves de Siqueira <[email protected]>
  • Loading branch information
hrasiq authored and igaw committed Jul 25, 2024
1 parent 4564405 commit fa02967
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/virtium/virtium-nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ static char vt_default_log_file_name[256];
struct vtview_log_header {
char path[256];
char test_name[256];
long time_stamp;
time_t time_stamp;
struct nvme_id_ctrl raw_ctrl;
struct nvme_firmware_slot raw_fw;
};

struct vtview_smart_log_entry {
char path[256];
long time_stamp;
time_t time_stamp;
struct nvme_id_ns raw_ns;
struct nvme_id_ctrl raw_ctrl;
struct nvme_smart_log raw_smart;
Expand Down

0 comments on commit fa02967

Please sign in to comment.