| /base/startup/appspawn/test/moduletest/ |
| H A D | appspawn_module_test.cpp | 81 if (sprintf_s(filePath, sizeof(filePath), "/proc/%d/%s", pid, fileName) <= 0) { in ReadFileInfo() 82 HILOG_ERROR(LOG_CORE, "filePath sprintf_s fail ."); in ReadFileInfo() 237 if (sprintf_s(filePath, sizeof(filePath), "/proc/%d", pid) <= 0) { in CheckProcessIsDestroyed() 238 HILOG_ERROR(LOG_CORE, "filePath sprintf_s fail ."); in CheckProcessIsDestroyed()
|
| /drivers/peripheral/usb/ddk/host/src/ |
| H A D | linux_adapter.c | 128 int32_t ret = sprintf_s(path, PATH_LEN, USB_DEVICE_MMAP_PATH "%03u_%03u", dev->busNum, dev->devAddr); in GetMmapFd() 146 int32_t ret = sprintf_s(path, sizeof(path), USB_DEV_FS_PATH "/%03u/%03u", dev->busNum, dev->devAddr); in GetUsbDevicePath()
|
| /foundation/multimedia/av_codec/services/engine/codec/video/fcodec/ |
| H A D | fcodec.cpp | 101 ret = sprintf_s(fileName, sizeof(fileName), "%s/input_%p.h264", DUMP_PATH, this); in OpenDumpFile() 112 ret = sprintf_s(fileName, sizeof(fileName), "%s/output_%p.yuv", DUMP_PATH, this); in OpenDumpFile()
|
| /foundation/communication/ipc/ipc/native/src/mock/source/ |
| H A D | binder_invoker.cpp | 1616 int ret = sprintf_s(buf, ACCESS_TOKEN_MAX_LEN + 1, "%010" PRIu64, tempTokenId); in ResetCallingIdentity() 1622 ret = sprintf_s(buf, ACCESS_TOKEN_MAX_LEN + 1, "%010d", tempRealPid); in ResetCallingIdentity()
|
| H A D | dbinder_databus_invoker.cpp | 941 int ret = sprintf_s(buf, ACCESS_TOKEN_MAX_LEN + 1, "%010" PRIu64, callerTokenID_); in ResetCallingIdentity()
|
| /foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/ |
| H A D | lnn_distributed_net_ledger.c | 556 if (sprintf_s(key, INT_TO_STR_SIZE + UUID_BUF_LEN, "%d%s", type, uuid) == -1) { in CreateCnnCodeKey() 684 if (sprintf_s(accountString, LONG_TO_STRING_MAX_LEN, "%" PRId64, info->accountId) == -1) { in UpdateNewNodeAccountHash()
|
| /test/xts/dcts/distributedhardware/distributedcameratest/ |
| H A D | dcamera_hdf_demo.cpp | 332 if (sprintf_s(path, sizeof(path), "%spicture_%ld.jpeg", prefix, start.tv_usec) < 0) {
in StoreImage() 333 DHLOGI("sprintf_s error .....");
in StoreImage() 369 if (sprintf_s(path, sizeof(path), "%svideo%ld.h264", prefix, seconds) < 0) {
in OpenVideoFile()
|
| /test/xts/hats/hdf/camera/cameraMg/v1_3/src/ |
| H A D | hdi_common_v1_3.cpp | 52 int ret = sprintf_s(mkdirCmd, sizeof(mkdirCmd) / sizeof(mkdirCmd[0]),
in DumpImageFile() 58 ret = sprintf_s(path, sizeof(path) / sizeof(path[0]), "/data/stream-%d/%lld.%s",
in DumpImageFile()
|
| /base/telephony/ril_adapter/services/vendor/src/ |
| H A D | at_network.c | 1581 (void)sprintf_s(cmd, MAX_CMD_LENGTH, "%s", "AT+COPS=0"); in PrepareSetNetworkSelectionMode() 1586 (void)sprintf_s(cmd, MAX_CMD_LENGTH, "AT+COPS=1,2,%s", setModeInfo->oper); in PrepareSetNetworkSelectionMode()
|
| /base/security/device_auth/test/fuzztest/devauthfunc_fuzzer/ |
| H A D | devauthfunc_fuzzer.cpp | 218 if (sprintf_s(strBuf, sizeof(strBuf) - 1, "rm -rf %s", path) < 0) { in RemoveDir()
|
| /base/update/updater/utils/ |
| H A D | utils.cpp | 639 if (sprintf_s(buf, MAX_RESULT_BUFF_SIZE - 1, "%s\n", result.c_str()) < 0) { in WriteDumpResult()
|
| /foundation/arkui/ace_engine_lite/frameworks/src/core/base/ |
| H A D | js_fwk_common.cpp | 635 if (sprintf_s(traceData, traceDataLen, "%s is bigger than %zu KB.\n", (ptr + 1), currentLimitation) < 0) { in OutputFileMaxLimitationTrace()
|
| /foundation/communication/bluetooth/frameworks/inner/c_adapter/ |
| H A D | ohos_bt_gatt.cpp | 107 (void)sprintf_s(token, sizeof(token), "%02X", scanResult.advData[i]);
|
| /foundation/graphic/graphic_3d/lume/LumeRender/src/gles/ |
| H A D | egl_state.cpp | 150 if (sprintf_s(error, sizeof(error), "Unknown error %x", aError) < 0) { in EglErrorStr() 151 PLUGIN_LOG_E("EglErrorStr: sprintf_s failed"); in EglErrorStr()
|
| /foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
| H A D | plugin_texture_encode_test.cpp | 545 if (sprintf_s(inFile, sizeof(inFile), "%s/%dx%d/a%04ld_%dx%d.rgb", testPath.c_str(),
in ReadFileExtern()
|
| /foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/src/ |
| H A D | lnn_heartbeat_fsm.c | 1065 if (sprintf_s(hbFsm->fsmName, HB_FSM_NAME_LEN, "LnnHbFsm-%u", hbFsm->id) == -1) { in InitHeartbeatFsm()
|
| /foundation/communication/ipc/ipc/native/test/unittest/common/ |
| H A D | ipc_binder_databus_invoker_unittest.cpp | 595 int ret = sprintf_s(buf, ACCESS_TOKEN_MAX_LEN + 1, "%010u", tokenId); in HWTEST_F()
|
| /foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/hdi_interface/ |
| H A D | wifi_hdi_wpa_p2p_impl.c | 793 if (sprintf_s(cfgValue, sizeof(cfgValue), "%s", value) < 0) { in HdiP2pSetSingleConfig()
|
| /foundation/communication/netstack/frameworks/cj/http/src/ |
| H A D | net_http_client_exec.cpp | 324 if (sprintf_s(encoded, sizeof(encoded), "%%%02X", c) < 0) { in EncodeUrlParam()
|
| /kernel/linux/common_modules/tzdriver/core/ |
| H A D | agent.c | 116 rc = sprintf_s(cmdstring, MAX_PATH_SIZE, "/proc/%d/exe", current->tgid); in get_proc_dpath()
|
| /kernel/liteos_m/components/fs/vfs/ |
| H A D | vfs_fs.c | 149 if (-1 == sprintf_s(tmpBuf, tmpLen, "/%s/%s/", cwd, path)) { in GetCanonicalPath()
|
| /test/xts/acts/communication_lite/lwip_hal/src/ |
| H A D | lwip_func_test.c | 139 rst = sprintf_s(dataBuf, sizeof(dataBuf), sendMsgList[i], clnFd); in CommTcpClientTask() 141 printf("[comm client]sprintf_s error!\n"); in CommTcpClientTask()
|
| /third_party/skia/third_party/externals/spirv-headers/tools/buildHeaders/jsoncpp/dist/ |
| H A D | jsoncpp.cpp | 1011 sprintf_s(buffer, sizeof(buffer), "Line %d, Column %d", line, column); 1974 sprintf_s(buffer, sizeof(buffer), "Line %d, Column %d", line, column); 4059 len = sprintf_s(buffer, sizeof(buffer), "%.17g", value);
|
| /third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Headers/tools/buildHeaders/jsoncpp/dist/ |
| H A D | jsoncpp.cpp | 1011 sprintf_s(buffer, sizeof(buffer), "Line %d, Column %d", line, column); 1974 sprintf_s(buffer, sizeof(buffer), "Line %d, Column %d", line, column); 4059 len = sprintf_s(buffer, sizeof(buffer), "%.17g", value);
|
| /third_party/spirv-headers/tools/buildHeaders/jsoncpp/dist/ |
| H A D | jsoncpp.cpp | 1011 sprintf_s(buffer, sizeof(buffer), "Line %d, Column %d", line, column); 1974 sprintf_s(buffer, sizeof(buffer), "Line %d, Column %d", line, column); 4059 len = sprintf_s(buffer, sizeof(buffer), "%.17g", value);
|