aboutsummaryrefslogtreecommitdiff
path: root/src/modules/sdlog2/sdlog2_format.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/sdlog2/sdlog2_format.h')
-rw-r--r--src/modules/sdlog2/sdlog2_format.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/sdlog2/sdlog2_format.h b/src/modules/sdlog2/sdlog2_format.h
index bbf8b6f12..59b91d90d 100644
--- a/src/modules/sdlog2/sdlog2_format.h
+++ b/src/modules/sdlog2/sdlog2_format.h
@@ -93,6 +93,6 @@ struct log_format_s {
#define LOG_FORMAT_MSG 0x80
-#define LOG_PACKET_SIZE(_name) LOG_PACKET_HEADER_LEN + sizeof(log_msg.body.log_##_name)
+#define LOG_PACKET_SIZE(_name) LOG_PACKET_HEADER_LEN + sizeof(struct log_##_name##_s)
#endif /* SDLOG2_FORMAT_H_ */