Skip to content

Commit ec86009

Browse files
taoyuhonglijinxia
authored andcommitted
tools: acrn-manager: code cleanup
remove test code in acrn_mngr.h Acked-by: Yan Like <like.yan@intel.com> Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
1 parent be80086 commit ec86009

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

tools/acrn-manager/acrn_mngr.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,6 @@ enum msgid {
3434
MSG_MAX,
3535
};
3636

37-
/* For test, generate a message who carry a string
38-
* eg., VMM_MSG_STR(hello_msg, "Hello\n") will create hello_msg,
39-
* then you can write(sock_fd, hello_msg, sizeof(hello_msg))
40-
*/
41-
#define MNGR_MSG_STR(var, str) \
42-
struct mngr_msg_##var { \
43-
struct mngr_msg msg; \
44-
char raw[sizeof(str)]; \
45-
} var = { \
46-
.msg = { \
47-
.magic = MNGR_MSG_MAGIC, \
48-
.msgid = MSG_STR, \
49-
.len = sizeof(struct mngr_msg_##var), \
50-
}, \
51-
.raw = str, \
52-
}
53-
5437
/* DM handled message event types */
5538
enum dm_msgid {
5639
DM_STOP = MSG_MAX + 1, /* Stop this UOS */

0 commit comments

Comments
 (0)