未验证 提交 3d950a80 编写于 作者: O openharmony_ci 提交者: Gitee

!41 Fix : 修改了3.0 LTS 代码中的告警

Merge pull request !41 from yinjiaming/OpenHarmony-3.0-LTS
......@@ -445,7 +445,7 @@ static int HiviewHieventConvertString(struct HiviewHievent *event, char **pbuf)
tmp = buf;
/* fill eventid */
tmplen = snprintf_s(tmp, len, len - 1, "eventid %d", event->eventid);
tmplen = snprintf_s(tmp, len, len - 1, "eventid %u", event->eventid);
BUF_POINTER_FORWARD;
/* fill the path */
......
......@@ -52,32 +52,32 @@ enum {
#define tlogv(fmt, args...) \
do { \
if (TZ_DEBUG_VERBOSE >= TEE_LOG_MASK) \
pr_info("(%i, %s)%s: " fmt, OsCurrTaskGet()->taskID, OsCurrTaskGet()->taskName, __func__, ## args); \
pr_info("(%u, %s)%s: " fmt, OsCurrTaskGet()->taskID, OsCurrTaskGet()->taskName, __func__, ## args); \
} while (0)
#define tlogd(fmt, args...) \
do { \
if (TZ_DEBUG_DEBUG >= TEE_LOG_MASK) \
pr_info("(%i, %s)%s: " fmt, OsCurrTaskGet()->taskID, OsCurrTaskGet()->taskName, __func__, ## args); \
pr_info("(%u, %s)%s: " fmt, OsCurrTaskGet()->taskID, OsCurrTaskGet()->taskName, __func__, ## args); \
} while (0)
#define tlogi(fmt, args...) \
do { \
if (TZ_DEBUG_INFO >= TEE_LOG_MASK) \
pr_info("(%i, %s)%s: " fmt, OsCurrTaskGet()->taskID, OsCurrTaskGet()->taskName, __func__, ## args); \
pr_info("(%u, %s)%s: " fmt, OsCurrTaskGet()->taskID, OsCurrTaskGet()->taskName, __func__, ## args); \
} while (0)
#define tlogw(fmt, args...) \
do { \
if (TZ_DEBUG_WARN >= TEE_LOG_MASK) \
pr_warn("(%i, %s)%s: " fmt, OsCurrTaskGet()->taskID, OsCurrTaskGet()->taskName, __func__, ## args); \
pr_warn("(%u, %s)%s: " fmt, OsCurrTaskGet()->taskID, OsCurrTaskGet()->taskName, __func__, ## args); \
} while (0)
#define tloge(fmt, args...) \
pr_err("(%i, %s)%s: " fmt, OsCurrTaskGet()->taskID, OsCurrTaskGet()->taskName, __func__, ## args)
pr_err("(%u, %s)%s: " fmt, OsCurrTaskGet()->taskID, OsCurrTaskGet()->taskName, __func__, ## args)
#endif
......@@ -73,7 +73,7 @@ static void MailboxShowStatus(void)
mutex_lock(&g_mbLock);
for (i = 0; i < MAILBOX_PAGE_MAX; i++) {
if (g_mZone.pages[i].count) {
pr_info("page[%02d], order=%02d, count=%d\n", i, g_mZone.pages[i].order, g_mZone.pages[i].count);
pr_info("page[%02u], order=%02d, count=%u\n", i, g_mZone.pages[i].order, g_mZone.pages[i].count);
used += (1UL << (uint32_t)g_mZone.pages[i].order);
}
}
......@@ -108,7 +108,7 @@ static void MailboxShowDetails(void)
for (i = 0; i < MAILBOX_PAGE_MAX; i++) {
if ((i % MB_SHOW_LINE) == 0) {
PRINTK("\n");
PRINTK("%04d-%04d:", i, i + MB_SHOW_LINE);
PRINTK("%04u-%04u:", i, i + MB_SHOW_LINE);
}
if (g_mZone.pages[i].count) {
......
......@@ -1561,7 +1561,7 @@ int SmcInitData(void)
g_siqThread = KthreadRun(SiqThreadFn, NULL, 0, "siqthread/0");
if (unlikely(IS_ERR_OR_NULL(g_siqThread))) {
pr_err("couldn't create siqthread %ld\n",
pr_err("couldn't create siqthread %lu\n",
PTR_ERR(g_siqThread));
ret = (int)PTR_ERR(g_siqThread);
goto FREE_MEM;
......
......@@ -591,7 +591,7 @@ int PackCaCert(char *caCert, const char *path,
}
messageSize = snprintf_s(caCert, BUF_MAX_SIZE - 1,
BUF_MAX_SIZE - 1, "%s%u", path,
BUF_MAX_SIZE - 1, "%s%d", path,
uid);
return messageSize;
......
......@@ -672,7 +672,7 @@ int TzSpiInit()
irq = NUM_HAL_INTERRUPT_TEE_SPI_NOTIFY;
int ret = DevmRequestIrq(irq, TcSecureNotify, IRQF_NO_SUSPEND, TC_NS_CLIENT_DEV, NULL);
if (ret < 0) {
tloge("device irq %u request failed %u", irq, ret);
tloge("device irq %u request failed %d", irq, ret);
goto clean;
}
ret = memset_s(&g_taCallbackFuncList, sizeof(g_taCallbackFuncList), 0, sizeof(g_taCallbackFuncList));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册