diff --git a/model/network/wifi/core/compoments/softap/ap.c b/model/network/wifi/core/compoments/softap/ap.c index 21daac1a325d8f9e7270f75f849b60b86e72a17a..563949bec97a1f4c293dcd2fd2e3a4351b6161de 100644 --- a/model/network/wifi/core/compoments/softap/ap.c +++ b/model/network/wifi/core/compoments/softap/ap.c @@ -72,7 +72,7 @@ static int32_t StartAp(struct NetDevice *netDev, WifiApSetting *apSettings) RETURN_IF_CHIPOPS_NOT_IMPLEMENT(chipDriver->apOps, ConfigAp); ret = chipDriver->apOps->ConfigAp(netDev, &apConf); if (ret != HDF_SUCCESS) { - HDF_LOGE("%s:ConfigAp failed!ret=%d", ret); + HDF_LOGE("%s:ConfigAp failed!ret=%d", __func__, ret); return HDF_FAILURE; } diff --git a/model/network/wifi/core/hdf_wifi_core.c b/model/network/wifi/core/hdf_wifi_core.c index 3217906135b0d1d291b262f0653dd7a091c817a9..7bd097d1cf228e470cb9d85d71c21c961b5e5791 100644 --- a/model/network/wifi/core/hdf_wifi_core.c +++ b/model/network/wifi/core/hdf_wifi_core.c @@ -50,7 +50,7 @@ int HdfWlanSdioScan(struct HdfWlanDevice *data, struct HdfConfigWlanBus *busConf if (ret != HDF_SUCCESS) { return ret; } - HDF_LOGI("driver name = %s", __func__, data->driverName); + HDF_LOGI("%s:driver name = %s", __func__, data->driverName); return HDF_SUCCESS; } @@ -232,7 +232,7 @@ static int32_t HdfWlanInitInterface(struct HdfWlanDevice *device, struct HdfChip } if (chipDriver->init == NULL) { - HDF_LOGI("%s: chip driver %s not 'init' api", __func__, factory->driverName); + HDF_LOGI("%s:chip driver %s not 'init' api", __func__, factory->driverName); ret = HDF_DEV_ERR_OP; break; } diff --git a/test/unittest/model/network/wifi/unittest/message/hdf_single_node_message_test.c b/test/unittest/model/network/wifi/unittest/message/hdf_single_node_message_test.c index e1105160f01376d433321227c950832e4ab26f75..4b122ab7ea24bc88216dad3fdf1a2d536dad17a3 100644 --- a/test/unittest/model/network/wifi/unittest/message/hdf_single_node_message_test.c +++ b/test/unittest/model/network/wifi/unittest/message/hdf_single_node_message_test.c @@ -218,7 +218,7 @@ int32_t MessageSingleNodeTest003(void) MSG_BREAK_IF_FUNCTION_FAILED(errCode, OsalDiffTime(&startTime, &endTime, &diffTime)); - HDF_LOGI("Process time %ld \n", diffTime.sec); + HDF_LOGI("Process time %llu \n", diffTime.sec); MSG_BREAK_IF(errCode, diffTime.sec > SYNC_MESSAGE_TIMEOUT); } while (false); @@ -310,7 +310,7 @@ int32_t MessageSingleNodeTest005(void) MSG_BREAK_IF_FUNCTION_FAILED(errCode, OsalDiffTime(&startTime, &endTime, &diffTime)); - HDF_LOGW("Process time %ld \n", diffTime.sec); + HDF_LOGW("Process time %llu \n", diffTime.sec); MSG_BREAK_IF(errCode, diffTime.sec > ASYNC_MESSAGE_TIMEOUT); } while (false); errShutdown = errShutdown | OsalSemDestroy(&g_callBackSem);