提交 3f16f168 编写于 作者: O openharmony_ci 提交者: Gitee

!248 fix: fix length typo

Merge pull request !248 from kenneth/los_queue.h
......@@ -49,7 +49,7 @@ extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#define MAX_LFNAME_LENTH 256
#define MAX_LFNAME_LENGTH 256
#define LABEL_LEN 12
#define FAT_RESERVED_NUM 2
#define FAT32_MAXSIZE 0x100000000
......
......@@ -215,7 +215,7 @@ static FRESULT FatfsScanClear(INT vol)
FRESULT ret;
DIR dir;
FILINFO fno;
CHAR path[MAX_LFNAME_LENTH];
CHAR path[MAX_LFNAME_LENGTH];
INT num;
INT res;
......@@ -224,7 +224,7 @@ static FRESULT FatfsScanClear(INT vol)
(void)memset_s(path, sizeof(path), 0, sizeof(path));
res = snprintf_s(path, MAX_LFNAME_LENTH, MAX_LFNAME_LENTH - 1, "%d:/", vol);
res = snprintf_s(path, MAX_LFNAME_LENGTH, MAX_LFNAME_LENGTH - 1, "%d:/", vol);
if (res < 0) {
return FR_INVALID_NAME;
}
......@@ -274,13 +274,13 @@ static FRESULT FatfsScanClear(INT vol)
static FRESULT FatfsBuildEntry(FATFS *fat, INT vol)
{
UINT i;
CHAR path[MAX_LFNAME_LENTH];
CHAR path[MAX_LFNAME_LENGTH];
FRESULT ret;
DIR dir;
INT res;
for (i = 0; i < fat->vir_amount; i++) {
res = snprintf_s(path, MAX_LFNAME_LENTH, MAX_LFNAME_LENTH - 1, "%d:%s", vol, CHILDFS(fat, i)->namelabel);
res = snprintf_s(path, MAX_LFNAME_LENGTH, MAX_LFNAME_LENGTH - 1, "%d:%s", vol, CHILDFS(fat, i)->namelabel);
if (res < 0) {
return FR_INVALID_NAME;
}
......@@ -340,7 +340,7 @@ INT FatFsBindVirPart(void *handle, BYTE vol)
{
INT ret;
FATFS *fat = (FATFS *)handle;
char path[MAX_LFNAME_LENTH] = {0};
char path[MAX_LFNAME_LENGTH] = {0};
if (fat == NULL) {
return -EINVAL;
......@@ -413,7 +413,7 @@ INT FatFsMakeVirPart(void *handle, BYTE vol)
{
INT ret;
FATFS *fat = (FATFS *)handle;
char path[MAX_LFNAME_LENTH] = {0};
char path[MAX_LFNAME_LENGTH] = {0};
if (fat == NULL) {
return -EINVAL;
......@@ -443,7 +443,7 @@ INT FatFsMakeVirPart(void *handle, BYTE vol)
INT fatfs_virstatfs_internel(struct Vnode *mountpt, const char *relpath, struct statfs *buf)
{
char drive[MAX_LFNAME_LENTH];
char drive[MAX_LFNAME_LENGTH];
DWORD freClust, allClust;
FATFS *fat = NULL;
INT result, vol;
......@@ -462,7 +462,7 @@ INT fatfs_virstatfs_internel(struct Vnode *mountpt, const char *relpath, struct
return -ENOENT;
}
if (strlen(relpath) > MAX_LFNAME_LENTH) {
if (strlen(relpath) > MAX_LFNAME_LENGTH) {
return -EFAULT;
}
......
......@@ -193,20 +193,20 @@ STATIC VOID OsQueueBufferOperate(LosQueueCB *queueCB, UINT32 operateType, VOID *
{
UINT8 *queueNode = NULL;
UINT32 msgDataSize;
UINT16 queuePosion;
UINT16 queuePosition;
/* get the queue position */
switch (OS_QUEUE_OPERATE_GET(operateType)) {
case OS_QUEUE_READ_HEAD:
queuePosion = queueCB->queueHead;
queuePosition = queueCB->queueHead;
((queueCB->queueHead + 1) == queueCB->queueLen) ? (queueCB->queueHead = 0) : (queueCB->queueHead++);
break;
case OS_QUEUE_WRITE_HEAD:
(queueCB->queueHead == 0) ? (queueCB->queueHead = queueCB->queueLen - 1) : (--queueCB->queueHead);
queuePosion = queueCB->queueHead;
queuePosition = queueCB->queueHead;
break;
case OS_QUEUE_WRITE_TAIL:
queuePosion = queueCB->queueTail;
queuePosition = queueCB->queueTail;
((queueCB->queueTail + 1) == queueCB->queueLen) ? (queueCB->queueTail = 0) : (queueCB->queueTail++);
break;
default: /* read tail, reserved. */
......@@ -214,7 +214,7 @@ STATIC VOID OsQueueBufferOperate(LosQueueCB *queueCB, UINT32 operateType, VOID *
return;
}
queueNode = &(queueCB->queueHandle[(queuePosion * (queueCB->queueSize))]);
queueNode = &(queueCB->queueHandle[(queuePosition * (queueCB->queueSize))]);
if (OS_QUEUE_IS_READ(operateType)) {
if (memcpy_s(&msgDataSize, sizeof(UINT32), queueNode + queueCB->queueSize - sizeof(UINT32),
......
......@@ -356,7 +356,7 @@ typedef struct tagQueueInfo {
* This API is used to create a message queue.
* @attention
* <ul>
* <li>Threre are LOSCFG_BASE_IPC_QUEUE_LIMIT queues available, change it's value when necessory.</li>
* <li>There are LOSCFG_BASE_IPC_QUEUE_LIMIT queues available, change it's value when necessary.</li>
* </ul>
* @param queueName [IN] Message queue name. Reserved parameter, not used for now.
* @param len [IN] Queue length. The value range is [1,0xffff].
......
......@@ -364,7 +364,7 @@ extern UINT32 LOS_SwtmrTimeGet(UINT16 swtmrID, UINT32 *tick);
* @attention
* <ul>
* <li>Do not use the delay interface in the callback function that handles software timer timeout.</li>
* <li>Threre are LOSCFG_BASE_CORE_SWTMR_LIMIT timers available, change it's value when necessory.</li>
* <li>There are LOSCFG_BASE_CORE_SWTMR_LIMIT timers available, change it's value when necessary.</li>
* </ul>
*
* @param interval [IN] Timing duration of the software timer to be created (unit: tick).
......
......@@ -41,8 +41,8 @@ extern "C" {
#endif /* __cpluscplus */
#endif /* __cpluscplus */
#define QUEUE_SHORT_BUFFER_LENTH 12
#define QUEUE_STANDARD_BUFFER_LENTH 50
#define QUEUE_SHORT_BUFFER_LENGTH 12
#define QUEUE_STANDARD_BUFFER_LENGTH 50
#define QUEUE_BASE_NUM 3
#define QUEUE_BASE_MSGSIZE 8
......
......@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
g_testQueueID01 = 1025; // 1025, ID of successfully created queue control structure.
......
......@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, 1); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
......
......@@ -39,8 +39,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
g_testQueueID01 = LOSCFG_BASE_IPC_QUEUE_CONFIG - 1;
......
......@@ -39,8 +39,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
g_testQueueID01 = 1025; // 1025, ID of successfully created queue control structure.
......
......@@ -39,8 +39,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
g_testQueueID01 = 1025; // 1025, ID of successfully created queue control structure.
......
......@@ -39,8 +39,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 1, &g_testQueueID01, 0, 8); // 8, Set the node size of the queue.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
......
......@@ -39,8 +39,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
g_testQueueID01 = 1025; // 1025, ID of successfully created queue control structure.
......
......@@ -39,8 +39,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSPtest";
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSPtest";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
g_testQueueID01 = LOSCFG_BASE_IPC_QUEUE_CONFIG - 1;
......
......@@ -39,13 +39,13 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSPtest";
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSPtest";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, sizeof(UINTPTR)); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
ret = LOS_QueueWrite(g_testQueueID01, &buff1, QUEUE_SHORT_BUFFER_LENTH, 0);
ret = LOS_QueueWrite(g_testQueueID01, &buff1, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
ret = LOS_QueueRead(g_testQueueID01, &buff2, sizeof(UINTPTR), 0);
......
......@@ -40,7 +40,7 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[9] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, sizeof(UINTPTR)); // 3, Set the queue length.
......
......@@ -40,7 +40,7 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, 8); // 3, Set the queue length; 8, Set the node size of the queue.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
......
......@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, 8); // 3, Set the queue length; 8, Set the node size of the queue.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
......
......@@ -40,22 +40,22 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, sizeof(UINTPTR)); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
ret = LOS_QueueWrite(g_testQueueID01, &buff1, QUEUE_SHORT_BUFFER_LENTH, 0);
ret = LOS_QueueWrite(g_testQueueID01, &buff1, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
ret = LOS_QueueRead(g_testQueueID01, &buff2, QUEUE_SHORT_BUFFER_LENTH, 0);
ret = LOS_QueueRead(g_testQueueID01, &buff2, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
ret = LOS_QueueDelete(g_testQueueID01);
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
ret = LOS_QueueRead(g_testQueueID01, &buff2, QUEUE_SHORT_BUFFER_LENTH, 0);
ret = LOS_QueueRead(g_testQueueID01, &buff2, QUEUE_SHORT_BUFFER_LENGTH, 0);
ICUNIT_GOTO_EQUAL(ret, LOS_ERRNO_QUEUE_NOT_CREATE, ret, EXIT);
ret = LOS_QueueDelete(g_testQueueID01);
......
......@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, sizeof(UINTPTR)); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
......
......@@ -42,8 +42,8 @@ static UINT32 Testcase(VOID)
UINT32 ret;
UINT32 index;
UINT32 queueID[LOSCFG_BASE_IPC_QUEUE_CONFIG + 1];
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
UINT32 exsitedQueue = QUEUE_EXISTED_NUM;
for (index = 0; index < LOSCFG_BASE_IPC_QUEUE_CONFIG - exsitedQueue; index++) {
......
......@@ -42,8 +42,8 @@ static UINT32 Testcase(VOID)
UINT32 ret;
UINT32 index;
UINT32 queueID[LOSCFG_BASE_IPC_QUEUE_CONFIG + 1];
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
UINT32 exsitedQueue = QUEUE_EXISTED_NUM;
for (index = 0; index < LOSCFG_BASE_IPC_QUEUE_CONFIG - exsitedQueue; index++) {
......
......@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, sizeof(UINTPTR)); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
......
......@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, sizeof(UINTPTR)); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
......
......@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "gjl";
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "gjl";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, sizeof(UINTPTR)); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
......
......@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, sizeof(UINTPTR)); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
......
......@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueWrite(QUEUE_EXISTED_NUM + 1, &buff1, 8, 0); // 8, Write the setting size of queue buffer.
ICUNIT_ASSERT_EQUAL(ret, LOS_ERRNO_QUEUE_NOT_CREATE, ret);
......
......@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, sizeof(UINTPTR)); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
......
......@@ -40,8 +40,8 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "DOPRA";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "DOPRA";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, 8); // 3, Set the queue length; 8, Set the node size of the queue.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
......
......@@ -40,7 +40,7 @@ extern "C" {
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH];
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH];
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, sizeof(UINTPTR)); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
......
......@@ -41,8 +41,8 @@ static UINT32 Testcase(VOID)
{
UINT32 ret;
UINT32 index;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "DOPRA";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "DOPRA";
CHAR buff3[8] = "TEST";
UINTPTR buff4;
UINTPTR buff5;
......
......@@ -41,8 +41,8 @@ static UINT32 Testcase(VOID)
{
UINT32 ret;
UINT32 index;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
ret = LOS_QueueCreate("Q1", 3, &g_testQueueID01, 0, sizeof(UINTPTR)); // 3, Set the queue length.
ICUNIT_GOTO_EQUAL(ret, LOS_OK, ret, EXIT);
......
......@@ -40,7 +40,7 @@ extern "C" {
static VOID TaskF01(VOID)
{
UINT32 ret;
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
g_testCount++;
......
......@@ -40,7 +40,7 @@ extern "C" {
static VOID TaskF01(VOID)
{
UINT32 ret;
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
g_testCount++;
......@@ -56,7 +56,7 @@ EXIT:
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
TSK_INIT_PARAM_S task1 = { 0 };
task1.pfnTaskEntry = (TSK_ENTRY_FUNC)TaskF01;
......
......@@ -40,7 +40,7 @@ extern "C" {
static VOID TaskF01(VOID)
{
UINT32 ret;
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
LOS_AtomicInc(&g_testCount);
......@@ -56,7 +56,7 @@ EXIT:
static VOID TaskF02(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
LOS_AtomicInc(&g_testCount);
......
......@@ -40,7 +40,7 @@ extern "C" {
static VOID TaskF01(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
LOS_AtomicInc(&g_testCount);
......@@ -56,7 +56,7 @@ EXIT:
static VOID TaskF02(VOID)
{
UINT32 ret;
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
LOS_AtomicInc(&g_testCount);
......
......@@ -40,7 +40,7 @@ extern "C" {
static VOID HwiF01(VOID)
{
UINT32 ret;
CHAR buff2[QUEUE_SHORT_BUFFER_LENTH] = "";
CHAR buff2[QUEUE_SHORT_BUFFER_LENGTH] = "";
TEST_HwiClear(HWI_NUM_TEST);
......@@ -58,7 +58,7 @@ EXIT:
static UINT32 Testcase(VOID)
{
UINT32 ret;
CHAR buff1[QUEUE_SHORT_BUFFER_LENTH] = "UniDSP";
CHAR buff1[QUEUE_SHORT_BUFFER_LENGTH] = "UniDSP";
g_testCount = 0;
......