diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/log/logger.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/log/logger.h b/include/log/logger.h index 6414d84..bea0022 100644 --- a/include/log/logger.h +++ b/include/log/logger.h @@ -79,14 +79,10 @@ struct logger_entry_v3 { struct log_msg { union { unsigned char buf[LOGGER_ENTRY_MAX_LEN + 1]; - struct logger_entry_v2 entry; + struct logger_entry_v3 entry; struct logger_entry_v3 entry_v3; struct logger_entry_v2 entry_v2; struct logger_entry entry_v1; - struct { - unsigned char buf[LOGGER_ENTRY_MAX_LEN + 1]; - log_id_t id; - } extra; } __attribute__((aligned(4))); #ifdef __cplusplus /* Matching log_time operators */ @@ -126,7 +122,7 @@ struct log_msg { /* packet methods */ log_id_t id() { - return extra.id; + return (log_id_t) entry.lid; } char *msg() { |