aboutsummaryrefslogtreecommitdiffstats
path: root/src/framework/ipc
diff options
context:
space:
mode:
authorRahul Gupta <rahul.g.chimera@gmail.com>2018-06-26 11:19:13 +0530
committerRahul Gupta <rahul.g.chimera@gmail.com>2018-06-26 11:19:13 +0530
commit82b5e45ebf316afd7daa97d9f9b7b75636fb4e64 (patch)
treefabed7d2c0cc187206b2f2e768a4afaafa046bd8 /src/framework/ipc
parent24cbcfaa6fa1121dec1a029a1df114f065341156 (diff)
Spell correction
Change-Id: Icc062e358398ecf0fc46b7a55ce1c37a71aee650 Signed-off-by: Rahul Gupta <rahul.g.chimera@gmail.com>
Diffstat (limited to 'src/framework/ipc')
-rw-r--r--src/framework/ipc/mgr_com/mgr_com.c72
-rw-r--r--src/framework/ipc/mgr_com/mgr_com.h4
-rw-r--r--src/framework/ipc/ps/nsfw_fd_timer.c4
-rw-r--r--src/framework/ipc/ps/nsfw_ps_mem_module.c22
-rw-r--r--src/framework/ipc/ps/nsfw_ps_module.c14
-rw-r--r--src/framework/ipc/ps/nsfw_recycle_module.c20
6 files changed, 68 insertions, 68 deletions
diff --git a/src/framework/ipc/mgr_com/mgr_com.c b/src/framework/ipc/mgr_com/mgr_com.c
index 5cdb044..2b35e2c 100644
--- a/src/framework/ipc/mgr_com/mgr_com.c
+++ b/src/framework/ipc/mgr_com/mgr_com.c
@@ -50,7 +50,7 @@ extern "C"{
/* *INDENT-OFF* */
nsfw_mgr_msg_fun g_mgr_fun[MGR_MSG_MAX][NSFW_MGRCOM_MAX_PROC_FUN];
nsfw_mgr_init_cfg g_mgr_com_cfg;
-nsfw_mgr_sock_map g_mgr_sockt_map = {{0}, NULL};
+nsfw_mgr_sock_map g_mgr_socket_map = {{0}, NULL};
nsfw_mgrcom_stat g_mgr_stat;
nsfw_mgrcom_proc g_ep_proc = { 0 };
/* *INDENT-ON* */
@@ -87,7 +87,7 @@ nsfw_get_proc_name (u8 proc_type)
/*****************************************************************************
* Prototype : nsfw_mgr_reg_msg_fun
-* Description : reg the callback funciton when receive new message
+* Description : reg the callback function when receive new message
* Input : u16 msg_type
* nsfw_mgr_msg_fun fun
* Output : None
@@ -519,13 +519,13 @@ NSTACK_STATIC inline u8
nsfw_mgr_new_socket (i32 fd, u8 proc_type, u32 host_pid)
{
nsfw_mgr_sock_info *sock_info = NULL;
- if (((i32) NSFW_MGR_FD_MAX <= fd) || (fd < 0) || (!g_mgr_sockt_map.sock))
+ if (((i32) NSFW_MGR_FD_MAX <= fd) || (fd < 0) || (!g_mgr_socket_map.sock))
{
- NSFW_LOGERR ("fd err]mgr_fd=%d, sock=%p", fd, g_mgr_sockt_map.sock);
+ NSFW_LOGERR ("fd err]mgr_fd=%d, sock=%p", fd, g_mgr_socket_map.sock);
return FALSE;
}
- sock_info = &g_mgr_sockt_map.sock[fd];
+ sock_info = &g_mgr_socket_map.sock[fd];
if (host_pid != sock_info->host_pid)
{
NSFW_LOGDBG
@@ -538,7 +538,7 @@ nsfw_mgr_new_socket (i32 fd, u8 proc_type, u32 host_pid)
if (proc_type < NSFW_PROC_MAX)
{
- g_mgr_sockt_map.proc_cache[proc_type] = fd;
+ g_mgr_socket_map.proc_cache[proc_type] = fd;
}
return TRUE;
@@ -557,18 +557,18 @@ NSTACK_STATIC inline u8
nsfw_mgr_del_socket (u32 fd)
{
nsfw_mgr_sock_info *sock_info = NULL;
- if ((NSFW_MGR_FD_MAX <= fd) || (!g_mgr_sockt_map.sock))
+ if ((NSFW_MGR_FD_MAX <= fd) || (!g_mgr_socket_map.sock))
{
- NSFW_LOGERR ("fd err]mgr_fd=%u, sock=%p", fd, g_mgr_sockt_map.sock);
+ NSFW_LOGERR ("fd err]mgr_fd=%u, sock=%p", fd, g_mgr_socket_map.sock);
return FALSE;
}
- sock_info = &g_mgr_sockt_map.sock[fd];
+ sock_info = &g_mgr_socket_map.sock[fd];
if (sock_info->proc_type < NSFW_PROC_MAX
- && fd == g_mgr_sockt_map.proc_cache[sock_info->proc_type])
+ && fd == g_mgr_socket_map.proc_cache[sock_info->proc_type])
{
- g_mgr_sockt_map.proc_cache[sock_info->proc_type] = 0;
+ g_mgr_socket_map.proc_cache[sock_info->proc_type] = 0;
}
NSFW_LOGDBG ("del sock]mgr_fd=%u,type=%u,pid=%u", fd,
@@ -597,17 +597,17 @@ nsfw_mgr_get_dst_socket (u8 proc_type, u32 dst_pid)
if (proc_type < NSFW_PROC_MAX)
{
- fd = g_mgr_sockt_map.proc_cache[proc_type];
+ fd = g_mgr_socket_map.proc_cache[proc_type];
}
- if (!g_mgr_sockt_map.sock)
+ if (!g_mgr_socket_map.sock)
{
return -1;
}
if (fd > 0 && fd < (i32) NSFW_MGR_FD_MAX)
{
- sock_info = &g_mgr_sockt_map.sock[fd];
+ sock_info = &g_mgr_socket_map.sock[fd];
if (sock_info->host_pid != 0)
{
if (0 == dst_pid || dst_pid == sock_info->host_pid)
@@ -624,7 +624,7 @@ nsfw_mgr_get_dst_socket (u8 proc_type, u32 dst_pid)
i32 i;
for (i = 0; i < (i32) NSFW_MGR_FD_MAX; i++)
{
- sock_info = &g_mgr_sockt_map.sock[i];
+ sock_info = &g_mgr_socket_map.sock[i];
if (sock_info->host_pid != 0 && proc_type == sock_info->proc_type)
{
if (0 == dst_pid || dst_pid == sock_info->host_pid)
@@ -673,14 +673,14 @@ u8
nsfw_mgr_clr_fd_lock ()
{
i32 i;
- if (!g_mgr_sockt_map.sock)
+ if (!g_mgr_socket_map.sock)
{
NSFW_LOGERR ("clr fd lock fail, sock is null");
return FALSE;
}
for (i = 0; i < (i32) NSFW_MGR_FD_MAX; i++)
{
- common_mem_spinlock_init (&(g_mgr_sockt_map.sock[i].opr_lock));
+ common_mem_spinlock_init (&(g_mgr_socket_map.sock[i].opr_lock));
}
return TRUE;
}
@@ -1063,7 +1063,7 @@ nsfw_mgr_msg_in (i32 fd)
}
NSFW_LOGERR ("drop msg]" MSGINFO, PRTMSG (msg));
- /* fix "Out-of-bounds write" type codedex issue */
+ /* fix "Out-of-bounds write" type codex issue */
if (msg->msg_type < MGR_MSG_MAX)
{
g_mgr_stat.recv_drop[msg->msg_type]++;
@@ -1075,7 +1075,7 @@ nsfw_mgr_msg_in (i32 fd)
/*****************************************************************************
* Prototype : nsfw_mgr_new_msg
-* Description : when new mgr message recive from socket, this funciton
+* Description : when new mgr message receive from socket, this function
will call back
* Input : i32 epfd
* i32 fd
@@ -1142,7 +1142,7 @@ nsfw_mgr_com_socket_error (i32 fd, nsfw_mgr_sock_fun fun, i32 timer)
/*****************************************************************************
* Prototype : nsfw_mgr_new_connection
-* Description : when new mgr connection in, this funciton will call back
+* Description : when new mgr connection in, this function will call back
* Input : i32 epfd
* i32 fd
* u32 events
@@ -1164,7 +1164,7 @@ nsfw_mgr_new_connection (i32 epfd, i32 fd, u32 events)
if (listen_fd < 0)
{
NSFW_LOGERR
- ("get listen_fd faied!]epfd=%d,listen_fd=%d,event=0x%x", epfd,
+ ("get listen_fd failed!]epfd=%d,listen_fd=%d,event=0x%x", epfd,
fd, events);
return FALSE;
}
@@ -1225,7 +1225,7 @@ nsfw_mgr_new_connection (i32 epfd, i32 fd, u32 events)
/*****************************************************************************
* Prototype : nsfw_set_sock_block
-* Description : set fd blok or not for epoll thread
+* Description : set fd block or not for epoll thread
* Input : i32 sock
* u8 flag
* Output : None
@@ -1507,15 +1507,15 @@ nsfw_sock_add_to_ep (i32 epfd)
u8
nsfw_mgr_com_start ()
{
- i32 listern_fd = nsfw_mgr_get_listen_socket ();
- if (listern_fd < 0)
+ i32 listen_fd = nsfw_mgr_get_listen_socket ();
+ if (listen_fd < 0)
{
- NSFW_LOGERR ("get listern_fd failed!");
+ NSFW_LOGERR ("get listen_fd failed!");
return FALSE;
}
- NSFW_LOGINF ("start mgr_com module!] listern_fd=%d", listern_fd);
- (void) nsfw_mgr_reg_sock_fun (listern_fd, nsfw_mgr_new_connection);
+ NSFW_LOGINF ("start mgr_com module!] listen_fd=%d", listen_fd);
+ (void) nsfw_mgr_reg_sock_fun (listen_fd, nsfw_mgr_new_connection);
return TRUE;
}
@@ -1714,7 +1714,7 @@ nsfw_mgr_com_chk_hbt (int v_add)
/*****************************************************************************
* Prototype : nsfw_mgr_comm_fd_destroy
-* Description : free the memeory
+* Description : free the memory
* Input :
* Output : None
* Return Value : int
@@ -1729,10 +1729,10 @@ nsfw_mgr_comm_fd_destroy ()
free (g_ep_proc.ep_fun);
g_ep_proc.ep_fun = NULL;
}
- if (g_mgr_sockt_map.sock)
+ if (g_mgr_socket_map.sock)
{
- free (g_mgr_sockt_map.sock);
- g_mgr_sockt_map.sock = NULL;
+ free (g_mgr_socket_map.sock);
+ g_mgr_socket_map.sock = NULL;
}
return;
}
@@ -1750,7 +1750,7 @@ int
nsfw_mgr_comm_fd_init (u32 proc_type)
{
/*only app need to do this */
- if ((g_mgr_sockt_map.sock) && (g_ep_proc.ep_fun))
+ if ((g_mgr_socket_map.sock) && (g_ep_proc.ep_fun))
{
return 0;
}
@@ -1773,18 +1773,18 @@ nsfw_mgr_comm_fd_init (u32 proc_type)
}
}
NSFW_LOGINF ("] final max fd=%d", NSFW_MGR_FD_MAX);
- if (!g_mgr_sockt_map.sock)
+ if (!g_mgr_socket_map.sock)
{
- g_mgr_sockt_map.sock =
+ g_mgr_socket_map.sock =
(nsfw_mgr_sock_info *) malloc (sizeof (nsfw_mgr_sock_info) *
NSFW_MGR_FD_MAX);
- if (NULL == g_mgr_sockt_map.sock)
+ if (NULL == g_mgr_socket_map.sock)
{
NSFW_LOGERR ("malloc fail] length=%d",
sizeof (nsfw_mgr_sock_info) * NSFW_MGR_FD_MAX);
return -1;
}
- (void) MEMSET_S (g_mgr_sockt_map.sock,
+ (void) MEMSET_S (g_mgr_socket_map.sock,
sizeof (nsfw_mgr_sock_info) * NSFW_MGR_FD_MAX, 0,
sizeof (nsfw_mgr_sock_info) * NSFW_MGR_FD_MAX);
}
diff --git a/src/framework/ipc/mgr_com/mgr_com.h b/src/framework/ipc/mgr_com/mgr_com.h
index c4333a1..a5cdfcf 100644
--- a/src/framework/ipc/mgr_com/mgr_com.h
+++ b/src/framework/ipc/mgr_com/mgr_com.h
@@ -123,14 +123,14 @@ u8 nsfw_mgr_stop ();
#define LOCK_MGR_FD(_fd){\
if ((i32)NSFW_MGR_FD_MAX > _fd)\
{\
- common_mem_spinlock_lock(&g_mgr_sockt_map.sock[_fd].opr_lock);\
+ common_mem_spinlock_lock(&g_mgr_socket_map.sock[_fd].opr_lock);\
}\
}
#define UNLOCK_MGR_FD(_fd){\
if ((i32)NSFW_MGR_FD_MAX > _fd)\
{\
- common_mem_spinlock_unlock(&g_mgr_sockt_map.sock[_fd].opr_lock);\
+ common_mem_spinlock_unlock(&g_mgr_socket_map.sock[_fd].opr_lock);\
}\
}
diff --git a/src/framework/ipc/ps/nsfw_fd_timer.c b/src/framework/ipc/ps/nsfw_fd_timer.c
index 57535a3..8c73ec0 100644
--- a/src/framework/ipc/ps/nsfw_fd_timer.c
+++ b/src/framework/ipc/ps/nsfw_fd_timer.c
@@ -243,7 +243,7 @@ nsfw_timer_notify_fun (i32 epfd, i32 fd, u32 events)
i32 timer_fd = nsfw_get_timer_socket ();
if (timer_fd < 0)
{
- NSFW_LOGERR ("get timer_fd faied!]epfd=%d,timer_fd=%d,event=0x%x",
+ NSFW_LOGERR ("get timer_fd failed!]epfd=%d,timer_fd=%d,event=0x%x",
epfd, fd, events);
return FALSE;
}
@@ -340,7 +340,7 @@ nsfw_timer_module_init (void *param)
pmpinfo.isocket_id = NSFW_SOCKET_ANY;
pmpinfo.stname.entype = NSFW_NSHMEM;
if (-1 ==
- SPRINTF_S (pmpinfo.stname.aname, NSFW_MEM_NAME_LENTH, "%s",
+ SPRINTF_S (pmpinfo.stname.aname, NSFW_MEM_NAME_LENGTH, "%s",
"MS_TM_INFOPOOL"))
{
NSFW_LOGERR ("SPRINTF_S failed");
diff --git a/src/framework/ipc/ps/nsfw_ps_mem_module.c b/src/framework/ipc/ps/nsfw_ps_mem_module.c
index 9cda6b3..55af158 100644
--- a/src/framework/ipc/ps/nsfw_ps_mem_module.c
+++ b/src/framework/ipc/ps/nsfw_ps_mem_module.c
@@ -132,7 +132,7 @@ mem_alloc_ps_info (u32 pid, u8 proc_type)
pps_info = nsfw_ps_info_alloc (pid, proc_type);
if (NULL == pps_info)
{
- NSFW_LOGERR ("alloc ps_info falied!]pid=%u,proc_type=%u", pid,
+ NSFW_LOGERR ("alloc ps_info failed!]pid=%u,proc_type=%u", pid,
proc_type);
return FALSE;
}
@@ -240,7 +240,7 @@ mem_item_get_cfg_from_msg (u16 msg_type)
/*****************************************************************************
* Prototype : mem_item_get_callargv
-* Description : change the message value to structur value
+* Description : change the message value to structure value
* Input : u16 msg_type
* char* msg_body
* char *memstr_buf
@@ -257,7 +257,7 @@ mem_item_get_callargv (u16 msg_type, char *msg_body, char *memstr_buf,
switch (msg_type)
{
case NSFW_RESERV_REQ_MSG:
- MEM_GET_CALLARGV (lenth, lenth, nsfw_mem_zone, nsfw_shmem_reserv_req,
+ MEM_GET_CALLARGV (length, length, nsfw_mem_zone, nsfw_shmem_reserv_req,
memstr_buf, msg_body);
MEM_GET_CALLARGV (isocket_id, isocket_id, nsfw_mem_zone,
nsfw_shmem_reserv_req, memstr_buf, msg_body);
@@ -308,7 +308,7 @@ mem_item_get_callargv (u16 msg_type, char *msg_body, char *memstr_buf,
}
if (EOK !=
STRCPY_S (((nsfw_mem_zone *) memstr_buf)->stname.aname,
- NSFW_MEM_NAME_LENTH,
+ NSFW_MEM_NAME_LENGTH,
((nsfw_shmem_reserv_req *) msg_body)->aname))
{
NSFW_LOGERR ("STRCPY_S failed]msg_type=%u", msg_type);
@@ -467,10 +467,10 @@ mem_init_rsp_msg (nsfw_shmem_msg_head * msg, nsfw_shmem_msg_head * rsp)
}
int idx;
- int mem_count = msg->uslenth / item_cfg->item_size;
+ int mem_count = msg->uslength / item_cfg->item_size;
rsp->usmsg_type = msg->usmsg_type + 1;
- rsp->uslenth = mem_count * sizeof (nsfw_shmem_ack);
+ rsp->uslength = mem_count * sizeof (nsfw_shmem_ack);
nsfw_shmem_ack *pack = (nsfw_shmem_ack *) & (rsp->aidata[0]);
char *pdata = NULL;
for (idx = 0; idx < mem_count; idx++)
@@ -511,7 +511,7 @@ mem_rel_mem_by_msg (nsfw_shmem_msg_head * req_msg,
return FALSE;
}
- unsigned int mem_count = req_msg->uslenth / item_cfg->item_size;
+ unsigned int mem_count = req_msg->uslength / item_cfg->item_size;
char *pdata = NULL;
nsfw_shmem_ack *pack = (nsfw_shmem_ack *) & (rsp->aidata[0]);
for (i = 0; i < mem_count; i++)
@@ -552,7 +552,7 @@ mem_lookup_mem_by_msg (nsfw_shmem_msg_head * mgr_msg,
return FALSE;
}
- int mem_count = mgr_msg->uslenth / item_cfg->item_size;
+ int mem_count = mgr_msg->uslength / item_cfg->item_size;
char *pdata = NULL;
void *paddr = NULL;
nsfw_shmem_ack *pack = (nsfw_shmem_ack *) & (rsp->aidata[0]);
@@ -600,7 +600,7 @@ mem_alloc_mem_by_msg (nsfw_shmem_msg_head * mem_msg,
char *pdata = NULL;
void *p_addr = NULL;
- int mem_count = mem_msg->uslenth / item_cfg->item_size;
+ int mem_count = mem_msg->uslength / item_cfg->item_size;
nsfw_shmem_ack *pack = (nsfw_shmem_ack *) & (rsp->aidata[0]);
for (i = 0; i < mem_count; i++)
{
@@ -630,7 +630,7 @@ fail_free_mem:
{
pdata = (char *) mem_msg->aidata + j * item_cfg->item_size;
if (EOK !=
- STRCPY_S (mem_free.stname.aname, NSFW_MEM_NAME_LENTH,
+ STRCPY_S (mem_free.stname.aname, NSFW_MEM_NAME_LENGTH,
((nsfw_shmem_reserv_req *) pdata)->aname))
{
NSFW_LOGERR ("STRCPY_S failed]j=%d", j);
@@ -835,7 +835,7 @@ mem_srv_ctrl_proc (nsfw_mgr_msg * msg)
nsfw_srv_ctrl_msg *ctrl_rsp_msg = GET_USER_MSG (nsfw_srv_ctrl_msg, rsp_msg);
NSFW_LOGINF ("get srv ctrl state] state=%d", ctrl_msg->srv_state);
- ctrl_rsp_msg->rsp_code = NSFW_MGR_SUCESS;
+ ctrl_rsp_msg->rsp_code = NSFW_MGR_SUCCESS;
(void) nsfw_mgr_send_msg (rsp_msg);
nsfw_mgr_msg_free (rsp_msg);
diff --git a/src/framework/ipc/ps/nsfw_ps_module.c b/src/framework/ipc/ps/nsfw_ps_module.c
index e532c31..0a02e6c 100644
--- a/src/framework/ipc/ps/nsfw_ps_module.c
+++ b/src/framework/ipc/ps/nsfw_ps_module.c
@@ -260,7 +260,7 @@ nsfw_ps_info_alloc (u32 pid, u8 proc_type)
nsfw_ps_info *pps_info = NULL;
if (0 == nsfw_mem_ring_dequeue (g_ps_cfg.ps_info_pool, (void *) &pps_info))
{
- NSFW_LOGERR ("alloc ps_info falied]pid=%u,type=%u", pid, proc_type);
+ NSFW_LOGERR ("alloc ps_info failed]pid=%u,type=%u", pid, proc_type);
return NULL;
}
@@ -967,7 +967,7 @@ nsfw_ps_check_dst_init (u8 dst_proc_type)
/*****************************************************************************
* Prototype : nsfw_ps_send_hbt
-* Description : seng heart beat message to peer
+* Description : send heart beat message to peer
* Input : nsfw_ps_info* pps_info
* Output : None
* Return Value : u8
@@ -1475,7 +1475,7 @@ nsfw_ps_chk_timeout (u32 timer_type, void *data)
/*****************************************************************************
* Prototype : nsfw_ps_rechk_pid_exit
-* Description : rechck pid exit
+* Description : recheck pid exit
* Input : nsfw_ps_proc_fun fun
* void* argv
* Output : None
@@ -1578,9 +1578,9 @@ nsfw_ps_module_init (void *param)
nsfw_mem_zone pzoneinfo;
pzoneinfo.isocket_id = NSFW_SOCKET_ANY;
pzoneinfo.stname.entype = NSFW_SHMEM;
- pzoneinfo.lenth = sizeof (nsfw_pid_item) * NSFW_MAX_PID;
+ pzoneinfo.length = sizeof (nsfw_pid_item) * NSFW_MAX_PID;
if (-1 ==
- SPRINTF_S (pzoneinfo.stname.aname, NSFW_MEM_NAME_LENTH, "%s",
+ SPRINTF_S (pzoneinfo.stname.aname, NSFW_MEM_NAME_LENGTH, "%s",
"MAS_PS_INFO"))
{
NSFW_LOGERR ("SPRINTF_S failed]");
@@ -1621,7 +1621,7 @@ nsfw_ps_module_init (void *param)
}
MEM_STAT (NSFW_PS_MODULE, pzoneinfo.stname.aname, NSFW_SHMEM,
- pzoneinfo.lenth);
+ pzoneinfo.length);
g_ps_info = pid_info;
break;
}
@@ -1674,7 +1674,7 @@ nsfw_ps_module_init (void *param)
pmpinfo.isocket_id = NSFW_SOCKET_ANY;
pmpinfo.stname.entype = NSFW_NSHMEM;
if (-1 ==
- SPRINTF_S (pmpinfo.stname.aname, NSFW_MEM_NAME_LENTH, "%s",
+ SPRINTF_S (pmpinfo.stname.aname, NSFW_MEM_NAME_LENGTH, "%s",
"MAS_PS_INFOPOOL"))
{
NSFW_LOGERR ("SPRINTF_S failed]");
diff --git a/src/framework/ipc/ps/nsfw_recycle_module.c b/src/framework/ipc/ps/nsfw_recycle_module.c
index bb3844f..541581f 100644
--- a/src/framework/ipc/ps/nsfw_recycle_module.c
+++ b/src/framework/ipc/ps/nsfw_recycle_module.c
@@ -44,7 +44,7 @@ nsfw_rec_fun_info g_rec_lock_fun[NSFW_REC_LOCK_REL_MAX_FUN];
/*****************************************************************************
* Prototype : nsfw_recycle_reg_fun
-* Description : reg one recycle type recycle funciton
+* Description : reg one recycle type recycle function
* Input : u16 rec_type
* nsfw_recycle_fun fun
* Output : None
@@ -191,7 +191,7 @@ nsfw_recycle_callback_all_obj (u32 pid, nsfw_recycle_pool * rec_pool)
pps_info = nsfw_ps_info_get (pid);
if (NULL == pps_info)
{
- NSFW_LOGERR ("get ps_info falied!]pid=%d", pid);
+ NSFW_LOGERR ("get ps_info failed!]pid=%d", pid);
return NSFW_RCC_CONTINUE;
}
@@ -259,7 +259,7 @@ nsfw_recycle_pid_obj (u32 pid)
pps_info = nsfw_ps_info_get (pid);
if (NULL == pps_info)
{
- NSFW_LOGERR ("get ps_info falied!]pid=%d", pid);
+ NSFW_LOGERR ("get ps_info failed!]pid=%d", pid);
return FALSE;
}
@@ -313,7 +313,7 @@ nsfw_recycle_all_obj (u32 pid)
pps_info = nsfw_ps_info_alloc (pid, NSFW_PROC_APP);
if (NULL == pps_info)
{
- NSFW_LOGERR ("alloc ps_info falied!]pid=%u", pid);
+ NSFW_LOGERR ("alloc ps_info failed!]pid=%u", pid);
return FALSE;
}
}
@@ -441,7 +441,7 @@ mem_rec_zone_init ()
for (i = 0; i < NSFW_REC_PRO_MAX; i++)
{
if (-1 ==
- SPRINTF_S (pringinfo.stname.aname, NSFW_MEM_NAME_LENTH, "%s%d",
+ SPRINTF_S (pringinfo.stname.aname, NSFW_MEM_NAME_LENGTH, "%s%d",
MEM_REC_QUEUE_NAME, i))
{
NSFW_LOGERR ("SPRINTF_S failed]");
@@ -462,11 +462,11 @@ mem_rec_zone_init ()
nsfw_mem_zone pzoneinfo;
pzoneinfo.isocket_id = NSFW_SOCKET_ANY;
pzoneinfo.stname.entype = NSFW_NSHMEM;
- pzoneinfo.lenth =
+ pzoneinfo.length =
MEM_RECYCLE_OBJ_MAX_NUM * sizeof (nsfw_recycle_obj) +
sizeof (nsfw_recycle_pool);
if (-1 ==
- SPRINTF_S (pzoneinfo.stname.aname, NSFW_MEM_NAME_LENTH, "%s",
+ SPRINTF_S (pzoneinfo.stname.aname, NSFW_MEM_NAME_LENGTH, "%s",
MEM_REC_POOL_NAME))
{
NSFW_LOGERR ("SPRINTF_S failed]");
@@ -481,12 +481,12 @@ mem_rec_zone_init ()
}
MEM_STAT (NSFW_RECYCLE_MODULE, MEM_REC_POOL_NAME, NSFW_NSHMEM,
- pzoneinfo.lenth);
+ pzoneinfo.length);
int retval;
retval =
- MEMSET_S (g_rec_cfg.mem_rec_obj_pool, pzoneinfo.lenth, 0,
- pzoneinfo.lenth);
+ MEMSET_S (g_rec_cfg.mem_rec_obj_pool, pzoneinfo.length, 0,
+ pzoneinfo.length);
if (EOK != retval)
{
NSFW_LOGERR ("mem set init failed!");