/foundation/communication/dsoftbus/core/connection/common/src/ |
H A D | softbus_socket.c | 425 rc = sprintf_s(addr, addrLen, "%s%s%s", ip, ADDR_SPLIT_IPV6, ifname); in Ipv6AddrInToAddr() 427 COMM_LOGE(CONN_COMMON, "sprintf_s addr fail"); in Ipv6AddrInToAddr()
|
/foundation/communication/netmanager_base/services/netmanagernative/src/manager/ |
H A D | interface_manager.cpp | 262 sprintf_s(buf, sizeof(buf), "%02x:%02x:%02x:%02x:%02x:%02x", hwaddr[0], hwaddr[ARRAY_OFFSET_1_INDEX], in HwAddrToStr()
|
/foundation/communication/netstack/frameworks/js/napi/fetch/fetch_exec/src/ |
H A D | fetch_exec.cpp | 203 if (sprintf_s(encoded, sizeof(encoded), "%%%02X", c) < 0) { in EncodeUrlParam()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/dumper/src/ |
H A D | dump_helper.cpp | 312 auto flag = sprintf_s(date, sizeof(date), "%04d-%02d-%02d %02d:%02d:%02d %03d", in AddErrorInfo()
|
/foundation/distributedhardware/distributed_input/utils/src/ |
H A D | dinput_utils_tool.cpp | 231 int32_t secRet = sprintf_s(tempBuffer, INT32_STRING_LENGTH, "%d", value); in GetAnonyInt32()
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/ |
H A D | nstackx_device.c | 227 if (sprintf_s(deviceList->reservedInfo, sizeof(deviceList->reservedInfo), in SetReservedInfoFromDeviceInfo() 229 DFINDER_LOGE(TAG, "sprintf_s reservedInfo with wifiIpAddr fails"); in SetReservedInfoFromDeviceInfo()
|
H A D | json_payload.c | 438 if (sprintf_s(coapUriBuffer, sizeof(coapUriBuffer), "coap://%s/" COAP_DEVICE_DISCOVER_URI, locaIpStr) < 0) { in PrepareServiceDiscoverEx()
|
H A D | nstackx_device_local.c | 492 if (sprintf_s(g_localDevice.deviceInfo.deviceHash, DEVICE_HASH_LEN, in SetLocalDeviceHash()
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/mini_discover/ |
H A D | coap_discover.c | 567 if (sprintf_s(remoteUrl, sizeof(remoteUrl), "coap://%s/" COAP_DEVICE_DISCOVER_URI, host) < 0) { in SendDiscoveryRspEx()
|
/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()
|
/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()
|
/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/bluetooth/frameworks/inner/src/ |
H A D | bluetooth_socket.cpp | 704 (void)sprintf_s(token, sizeof(token), "%02X:%02X:%02X:%02X:%02X:%02X", in RecvSocketFd()
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | gt_bundle_installer.cpp | 603 if (sprintf_s(bundleJsonPath, PATH_LENGTH, "%s%s%s", JSON_PATH, bundleName, JSON_SUFFIX) < 0) { in Uninstall()
|
/foundation/communication/dsoftbus/components/nstackx/fillp/src/app_lib/src/ |
H A D | fillp_dfx.c | 381 FILLP_INT ret = sprintf_s(data + len, FILLP_DFX_DUMP_BUF_LEN - len, fmt, ##__VA_ARGS__); \
|
/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()
|
/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()
|
/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]);
|