7816 fsm: emphasize the inner workings of the static msgb macro

Change-Id: I37226d1fe2c14adb2b2d97608496dbb1661be543
This commit is contained in:
Eric Wild 2021-11-27 13:10:24 +01:00 committed by laforge
parent 51b2facc66
commit 06f7e92a04
1 changed files with 3 additions and 3 deletions

View File

@ -46,9 +46,9 @@
memset(name, 0x00, sizeof(name ## _msgbuf)); \
name->data_len = sizeof(name ## _msgbuf) - sizeof(struct msgb); \
name->len = 0; \
name->data = name->_data; \
name->head = name->_data; \
name->tail = name->_data; \
name->data = &name->_data[0]; \
name->head = &name->_data[0]; \
name->tail = &name->_data[0]; \
}
#define COPY_TO_STATIC_MSGB(src, dst) { \