| /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()
|
| /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()
|
| /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()
|
| /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()
|
| H A D | nstackx_device_local.c | 492 if (sprintf_s(g_localDevice.deviceInfo.deviceHash, DEVICE_HASH_LEN, in SetLocalDeviceHash()
|
| /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()
|
| /base/security/device_auth/services/key_agree_sdk/src/ |
| H A D | key_agree_session.c | 167 if (sprintf_s(tmpStr, TMP_VERSION_STR_LEN, "%lld.%lld.%lld", in VersionToString()
|
| /base/security/device_auth/services/legacy/group_auth/src/group_auth_manager/account_related_group_auth/ |
| H A D | account_related_group_auth.c | 418 if (sprintf_s(keyStr, keyLen + PLACE_HOLDER_LENGTH, JSON_KEY_FORMAT, key) <= 0) { in GetValueFromJsonStr()
|
| /base/security/device_auth/test/unittest/tdd_framework/unit_test/services/session_manager/session/v2/expand_sub_session/expand_process_lib/ |
| H A D | save_trusted_info_test.cpp | 78 if (sprintf_s(strBuf, sizeof(strBuf) - 1, "rm -rf %s", path) < 0) { in RemoveDir()
|
| /base/startup/init/services/begetctl/shell/ |
| H A D | shell_bas.c | 41 int len = sprintf_s(shell->data, sizeof(shell->data) - 1, "System unknown err 0x%08x", err); in BShellEnvErrString()
|
| /base/startup/appspawn/test/unittest/app_spawn_standard_test/ |
| H A D | app_spawn_service_test.cpp | 574 EXPECT_GT(sprintf_s(pid, 16, "%d", app->pid), 0); in HWTEST_F()
|
| /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__); \
|