Skip to content

Commit

Permalink
tools: acrn-manager: code cleanup
Browse files Browse the repository at this point in the history
remove test code in acrn_mngr.h

Acked-by: Yan Like <like.yan@intel.com>
Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
  • Loading branch information
taoyuhong authored and lijinxia committed Jul 19, 2018
1 parent be80086 commit ec86009
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions tools/acrn-manager/acrn_mngr.h
Expand Up @@ -34,23 +34,6 @@ enum msgid {
MSG_MAX,
};

/* For test, generate a message who carry a string
* eg., VMM_MSG_STR(hello_msg, "Hello\n") will create hello_msg,
* then you can write(sock_fd, hello_msg, sizeof(hello_msg))
*/
#define MNGR_MSG_STR(var, str) \
struct mngr_msg_##var { \
struct mngr_msg msg; \
char raw[sizeof(str)]; \
} var = { \
.msg = { \
.magic = MNGR_MSG_MAGIC, \
.msgid = MSG_STR, \
.len = sizeof(struct mngr_msg_##var), \
}, \
.raw = str, \
}

/* DM handled message event types */
enum dm_msgid {
DM_STOP = MSG_MAX + 1, /* Stop this UOS */
Expand Down

0 comments on commit ec86009

Please sign in to comment.