diff --git a/adapter/uhdf2/manager/src/devmgr_query_device.c b/adapter/uhdf2/manager/src/devmgr_query_device.c index a3738fe0fe65609f90594a65c21c61f2d7936b2c..61942461381a40c3bc7782a67bfcc0a34072a8f3 100644 --- a/adapter/uhdf2/manager/src/devmgr_query_device.c +++ b/adapter/uhdf2/manager/src/devmgr_query_device.c @@ -46,18 +46,16 @@ int DevFillQueryDeviceInfo(struct IDevmgrService *inst, struct HdfSBuf *data, st HDF_LOGD("%{public}s, host:%{public}s %{public}d", __func__, hostClnt->hostName, hostClnt->hostId); while (HdfSListIteratorHasNext(&itDeviceInfo)) { deviceInfo = (struct HdfDeviceInfo *)HdfSListIteratorNext(&itDeviceInfo); - HDF_LOGD("%{public}s %{public}s policy:%{public}d status:%{public}d type:%{public}d", __func__, - deviceInfo->svcName, deviceInfo->policy, deviceInfo->status, deviceInfo->deviceType); if ((deviceInfo->policy == SERVICE_POLICY_CAPACITY || deviceInfo->policy == SERVICE_POLICY_PUBLIC) && deviceInfo->status == status) { flag = HdfSbufWriteString(reply, deviceInfo->svcName); if (!flag) { - HDF_LOGE("%{public}s writing string failed %{public}s", __func__, deviceInfo->svcName); + HDF_LOGE("writing string failed"); return HDF_FAILURE; } flag = HdfSbufWriteInt32(reply, deviceInfo->deviceType); if (!flag) { - HDF_LOGE("%{public}s writing int32 failed %{public}d", __func__, deviceInfo->deviceType); + HDF_LOGE("writing int32 failed"); return HDF_FAILURE; } } diff --git a/framework/core/host/src/devhost_service.c b/framework/core/host/src/devhost_service.c index 543835580652c407d1c85214be6cffba0429e972..d7b5f1a2748d6a4362b281115a52db1272edb964 100644 --- a/framework/core/host/src/devhost_service.c +++ b/framework/core/host/src/devhost_service.c @@ -86,7 +86,7 @@ int DevHostServiceAddDevice(struct IDevHostService *inst, const struct HdfDevice } driver = driverLoader->GetDriver(deviceInfo->moduleName); if (driver == NULL) { - HDF_LOGE("failed to add device %{public}s, get driver failed", deviceInfo->moduleName); + HDF_LOGE("failed to add device, get driver failed"); ret = HDF_DEV_ERR_NODATA; goto ERROR; } diff --git a/framework/core/host/src/hdf_device_node.c b/framework/core/host/src/hdf_device_node.c index 07d0c4c34609ace3d5d96af6e809f8dda57ae372..0ef223b2f49a89c41a149e21868aeafcf57330d5 100644 --- a/framework/core/host/src/hdf_device_node.c +++ b/framework/core/host/src/hdf_device_node.c @@ -286,8 +286,7 @@ struct HdfDeviceNode *HdfDeviceNodeNewInstance(const struct HdfDeviceInfo *devic #else devNode->deviceObject.property = HcsGetNodeByMatchAttr(HdfGetHcsRootNode(), deviceInfo->deviceMatchAttr); if (devNode->deviceObject.property == NULL) { - HDF_LOGD("node %{public}s property empty, match attr: %{public}s", - deviceInfo->moduleName, deviceInfo->deviceMatchAttr); + HDF_LOGD("node property empty"); } #endif diff --git a/framework/core/manager/src/devhost_service_clnt.c b/framework/core/manager/src/devhost_service_clnt.c index 421cbbd389d7699ad6558cb6a9d2f285d08cded0..8b39d9588d6e69d81ef24b6485976ede6298ed84 100644 --- a/framework/core/manager/src/devhost_service_clnt.c +++ b/framework/core/manager/src/devhost_service_clnt.c @@ -49,7 +49,7 @@ int DevHostServiceClntInstallDriver(struct DevHostServiceClnt *hostClnt) } ret = devHostSvcIf->AddDevice(devHostSvcIf, deviceInfo); if (ret != HDF_SUCCESS) { - HDF_LOGE("failed to AddDevice %{public}s, ret = %{public}d", deviceInfo->svcName, ret); + HDF_LOGE("failed to AddDevice"); continue; } deviceInfo->status = HDF_SERVICE_USABLE; diff --git a/framework/core/manager/src/devmgr_service.c b/framework/core/manager/src/devmgr_service.c index e2cbcf7a1b6478860fadfcc4a7c178dbdf1700b5..5c4583ab4e331d96316e47f480268eec298ab145 100644 --- a/framework/core/manager/src/devmgr_service.c +++ b/framework/core/manager/src/devmgr_service.c @@ -213,7 +213,7 @@ int32_t DevmgrServiceLoadLeftDriver(struct DevmgrService *devMgrSvc) if (deviceInfo->preload == DEVICE_PRELOAD_ENABLE_STEP2) { ret = hostClnt->hostService->AddDevice(hostClnt->hostService, deviceInfo); if (ret != HDF_SUCCESS) { - HDF_LOGE("%{public}s:failed to load driver %{public}s", __func__, deviceInfo->moduleName); + HDF_LOGE("failed to load driver"); continue; } deviceInfo->status = HDF_SERVICE_USABLE;