| /drivers/peripheral/camera/test/demo_3A/ |
| H A D | ohos_camera_demo_3a.cpp | 332 if (sprintf_s(path, sizeof(path), "%spicture_%ld.jpeg", prefix, start.tv_usec) < 0) { in StoreImage() 333 CAMERA_LOGE("sprintf_s error ....."); in StoreImage() 374 if (sprintf_s(path, sizeof(path), "%svideo%ld.h264", prefix, seconds) < 0) { in OpenVideoFile()
|
| /drivers/peripheral/camera/test/demo/ |
| H A D | ohos_camera_demo.cpp | 337 if (sprintf_s(path, sizeof(path), "%spicture_%ld.jpeg", prefix, start.tv_usec) < 0) { in StoreImage() 338 CAMERA_LOGE("sprintf_s error ....."); in StoreImage() 379 if (sprintf_s(path, sizeof(path), "%svideo%ld.h264", prefix, seconds) < 0) { in OpenVideoFile()
|
| /drivers/peripheral/distributed_camera/hdi_service/test/sample/ |
| H A D | dcamera_hdf_demo.cpp | 313 if (sprintf_s(path, sizeof(path), "%spicture_%ld.jpeg", prefix, start.tv_usec) < 0) { in StoreImage() 314 DHLOGE("sprintf_s error ....."); in StoreImage() 350 if (sprintf_s(path, sizeof(path), "%svideo%ld.h264", prefix, seconds) < 0) { in OpenVideoFile()
|
| /foundation/communication/dsoftbus/core/discovery/manager/src/ |
| H A D | disc_manager.c | 610 itemStrLen = sprintf_s(&dumpStr[dumpStrPos], DUMP_STR_LEN - dumpStrPos, "%d,", infoNode->id); in DumpDiscInfoList() 614 itemStrLen = sprintf_s(&dumpStr[dumpStrPos], DUMP_STR_LEN - dumpStrPos, "%d,", infoNode->id); in DumpDiscInfoList() 615 DISC_CHECK_AND_RETURN_LOGW(itemStrLen > 0, DISC_CONTROL, "sprintf_s failed"); in DumpDiscInfoList()
|
| /foundation/distributedhardware/device_manager/services/service/src/softbus/ |
| H A D | mine_softbus_listener.cpp | 403 retValue = sprintf_s(&output[*outLen], DM_DEVICE_NUMBER_LEN, "%010d", optionInfo[i].startNumber); in ParseScopeDeviceJsonArray() 409 retValue = sprintf_s(&output[*outLen], DM_DEVICE_NUMBER_LEN, "%010d", optionInfo[i].endNumber); in ParseScopeDeviceJsonArray()
|
| /test/xts/acts/communication_lite/lwip_posix/src/ |
| H A D | ActsLwipTest.cpp | 124 rst = sprintf_s(dataBuf, sizeof(dataBuf), sendMsgList[i], clnFd); in CommTcpClientTask() 126 printf("[comm client]sprintf_s error!\n"); in CommTcpClientTask() 359 sprintf_s(dataBuf, sizeof(dataBuf), "server timeout:%d", timeout); in TcpServerForFork()
|
| /test/xts/hats/hdf/camera/cameraMg/v1_2/src/ |
| H A D | hdi_common_v1_2.cpp | 43 int ret = sprintf_s(mkdirCmd, sizeof(mkdirCmd) / sizeof(mkdirCmd[0]),
in DumpImageFile() 49 ret = sprintf_s(path, sizeof(path) / sizeof(path[0]), "/data/stream-%d/%lld.%s",
in DumpImageFile()
|
| /test/xts/device_attest/services/core/network/ |
| H A D | attest_network.c | 210 retCode = sprintf_s(tracekId, traceIdLen, "%s_%s", tracekId, randomUuid); in SetSocketTracekId() 214 ATTEST_LOG_ERROR("[SetSocketTracekId] sprintf_s tracekId failed"); in SetSocketTracekId() 525 int newLen = sprintf_s(reqHeadData, headerMaxLen, HTTPS_POST_FORMAT, FILL_HTTPS_POST_FORMAT_ARGS(msgHttpPack)); in BuildHttpsHead() 530 ATTEST_LOG_ERROR("[BuildHttpsHead] reqHeadData sprintf_s fail"); in BuildHttpsHead()
|
| /base/security/device_auth/services/data_manager/src/ |
| H A D | data_manager.c | 191 if (sprintf_s(infoPath, pathBufferLen, "%s/%d/deviceauth/hcgroup.dat", beginPath, osAccountId) <= 0) { in GetOsAccountInfoPathCe() 207 writeByteNum = sprintf_s(infoPath, pathBufferLen, "%s/hcgroup.dat", beginPath); in GetOsAccountInfoPathDe() 209 writeByteNum = sprintf_s(infoPath, pathBufferLen, "%s/hcgroup%d.dat", beginPath, osAccountId); in GetOsAccountInfoPathDe() 212 LOGE("[DB]: sprintf_s fail!"); in GetOsAccountInfoPathDe()
|
| /base/security/device_auth/services/legacy/authenticators/src/account_related/creds_manager/ |
| H A D | asy_token_manager.c | 101 if (sprintf_s(tokenPath, pathBufferLen, "%s/%d/deviceauth/account/account_data_asy.dat", in GetTokenPathCe() 118 writeByteNum = sprintf_s(tokenPath, pathBufferLen, "%s/account_data_asy.dat", beginPath); in GetTokenPathDe() 120 writeByteNum = sprintf_s(tokenPath, pathBufferLen, "%s/account_data_asy%d.dat", beginPath, osAccountId); in GetTokenPathDe() 123 LOGE("sprintf_s fail!"); in GetTokenPathDe()
|
| /drivers/hdf_core/framework/model/audio/usb/src/ |
| H A D | audio_usb_mixer.c | 807 return sprintf_s(name, KCTL_NAME_LEN, "Unit %d", usbAudioTerm->id); in AudioUsbGetTermName() 1701 (void)sprintf_s(kcontrol->name, KCTL_NAME_LEN, "Mixer Source %d", mixCtlParam->itemChannels + 1); in AudioUsbBuildMixerUnitCtl() 1867 sprintf_s(nameList[i], MAX_ITEM_NAME_LEN, "Input %u", i); in AudioUsbSetTermName()
|
| /foundation/multimedia/av_codec/services/engine/codec/video/hevcdecoder/ |
| H A D | hevc_decoder.cpp | 199 int ret = sprintf_s(fileName, sizeof(fileName), "%s/input_%p.h265", DUMP_PATH, this); in OpenDumpFile() 210 int ret = sprintf_s(fileName, sizeof(fileName), "%s/output_%p.yuv", DUMP_PATH, this); in OpenDumpFile() 219 ret = sprintf_s(fileName, sizeof(fileName), "%s/outConvert_%p.data", DUMP_PATH, this); in OpenDumpFile()
|
| /foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sta_sa/ |
| H A D | wifi_device_service_impl.cpp | 1911 if (sprintf_s(cmd, sizeof(cmd), "ENABLE=%d BSSID=%s", uiFlag, bssid.c_str()) < 0) { in EnableHiLinkHandshake() 1920 if (sprintf_s(cmd, sizeof(cmd), "ENABLE=%d BSSID=%s", uiFlag, bssid.c_str()) < 0) { in EnableHiLinkHandshake() 1937 if (sprintf_s(cmd, sizeof(cmd), "HILINK_MAC=%s", currentMac.c_str()) < 0) { in EnableHiLinkHandshake()
|
| /foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/ |
| H A D | nstackx_file_manager.c | 435 ret = sprintf_s(fullPath, fullPathLength, "%s%s", path, fileName); in GetFullFilePath() 437 ret = sprintf_s(fullPath, fullPathLength, "%s%c%s", path, PATH_SEPARATOR, fileName); in GetFullFilePath() 855 if (sprintf_s(name, sizeof(name), "%s%u", DFFILE_IO_THREAD_NAME_PREFIX, threadIdx) < 0) { in SetIOThreadName()
|
| /base/startup/init/services/param/linux/ |
| H A D | param_service.c | 268 int ret = sprintf_s(condition, buffSize - 1, "%s=%s", msg->key, valueContent->content);
in HandleParamWaitAdd()
|
| /base/security/permission_lite/services/pms/src/ |
| H A D | pms_impl.c | 265 if (sprintf_s(buf, BUFF_PARAM_SIZE, "%d", permissions[i].flags) < 0) {
in SavePermissions()
|
| /drivers/peripheral/usb/ddk/device/src/ |
| H A D | usbfn_dev_mgr.c | 136 ret = sprintf_s(fnDevMgr->name, MAX_NAMELEN, "g%d", devCnt); in CreatDev()
|
| /foundation/multimedia/audio_framework/frameworks/native/audioutils/include/ |
| H A D | audio_utils.h | 225 int len = ::sprintf_s(buf, sizeof(buf), fmt, args...); in AppendFormat()
|
| /foundation/communication/dsoftbus/core/discovery/coap/nstackx_coap/src/ |
| H A D | disc_nstackx_adapter.c | 249 if (sprintf_s(serviceData, NSTACKX_MAX_SERVICE_DATA_LEN, "port:%d,", authPort) == -1) {
in DiscCoapRegisterServiceData()
|
| /foundation/communication/netmanager_ext/services/ethernetmanager/src/ |
| H A D | ethernet_management.cpp | 238 sprintf_s(buf, sizeof(buf), "%02x:%02x:%02x:%02x:%02x:%02x", hwaddr[0], hwaddr[INDEX_ONE], in HwAddrToStr()
|
| /foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/ |
| H A D | json_payload.c | 438 if (sprintf_s(coapUriBuffer, sizeof(coapUriBuffer), "coap://%s/" COAP_DEVICE_DISCOVER_URI, locaIpStr) < 0) { in PrepareServiceDiscoverEx()
|
| /test/xts/device_attest/services/core/security/ |
| H A D | attest_security.c | 662 if (sprintf_s(buf, sizeof(buf), "%02x", value) < 0) { in MD5Encode()
|
| /base/startup/appspawn/modules/sandbox/ |
| H A D | sandbox_utils.cpp | 655 (void)sprintf_s(options, sizeof(options), "fd=%d," in DoDlpAppMountStrategy() 1824 int len = sprintf_s(path, allPathSize, "%s%u%s%s", rootPath, uid, basePath, bundleName); 1851 int len = sprintf_s(path, allPathSize, "%s%u/%s%s", rootPath, info->uid / userIdBase, bundleName, targetPath);
|
| /base/hiviewdfx/hidumper/frameworks/native/src/manager/ |
| H A D | dump_implement.cpp | 344 if (sprintf_s(currentTime, sizeof(currentTime), "%s-%03d", buffer, milli) < 0) { in GetTime()
|
| /base/security/access_token/interfaces/innerkits/nativetoken/test/unittest/src/ |
| H A D | nativetoken_kit_test.cpp | 608 int32_t ret = sprintf_s(processName[i], MAX_PROCESS_NAME_LEN, "processName_%d", i); in HWTEST_F()
|