Home
last modified time | relevance | path

Searched refs:sprintf_s (Results 101 - 125 of 173) sorted by relevance

1234567

/base/startup/init/interfaces/innerkits/fs_manager/
H A Dfstab_mount.c312 int len = sprintf_s(sizeStr, RESIZE_BUFFER_SIZE, "%llu", realSize); in DoResizeF2fs()
357 int len = sprintf_s(sizeStr, RESIZE_BUFFER_SIZE, "%lluM", size); in DoResizeExt()
594 BEGET_ERROR_CHECK(sprintf_s(buffer, sizeof(buffer), "%s_%c", item->deviceName, 'a' + slot - 1) > 0, in AdjustPartitionNameByPartitionSlot()
/base/hiviewdfx/hidumper/services/native/src/
H A Draw_param.cpp55 if (sprintf_s(argValues_[i]->value, SINGLE_ARG_MAXLEN, "%s", Str16ToStr8(args[i]).c_str()) < 0) { in Init()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
H A Dcert_manager_file.c138 if (sprintf_s((char *)fNames[i].data, nameSize, "%s", dire.fileName) < 0) { in GetFileNames()
/base/startup/init/services/modules/reboot/
H A Dreboot_static.c60 int ret = sprintf_s(tmp, len, "%s%s", prefix, str); in Dup2String()
H A Dreboot.c53 ret = sprintf_s(tmp, len - 1, "%s ", argv[i]); in ParseRebootReason()
55 PLUGIN_LOGW("ParseRebootReason: sprintf_s arg %s failed!", argv[i]); in ParseRebootReason()
/base/customization/config_policy/frameworks/config_policy/src/
H A Dconfig_policy_utils.c140 if (result != NULL && sprintf_s(result, bufSize, "%s%s", opKeyDir, opKeyValue) > 0) { in GetOpkeyPath()
197 if (search == NULL || sprintf_s(search, bufSize, ":%s,", relPath) == -1) { in GetFollowXRule()
/base/startup/init/services/init/
H A Dinit_group_manager.c153 len = sprintf_s(buffer, buffSize, format, path, cfgName); in GetAbsolutePath()
156 len = sprintf_s(buffer, buffSize, format, cfgName); in GetAbsolutePath()
/base/security/device_auth/services/privacy_enhancement/src/
H A Dpseudonym_manager.c190 if (sprintf_s(path, pathBufferLen, "%s/%d/deviceauth/pseudonym/pseudonym_data.dat", beginPath, osAccountId) <= 0) { in GetPseudonymPathCe()
206 writeByteNum = sprintf_s(path, pathBufferLen, "%s/pseudonym_data.dat", beginPath); in GetPseudonymPathDe()
208 writeByteNum = sprintf_s(path, pathBufferLen, "%s/pseudonym_data%d.dat", beginPath, osAccountId); in GetPseudonymPathDe()
211 LOGE("sprintf_s fail!"); in GetPseudonymPathDe()
/base/security/device_auth/test/unittest/deviceauth/source/
H A Dcreds_manager_test.cpp63 if (sprintf_s(strBuf, sizeof(strBuf) - 1, "rm -rf %s", path) < 0) { in RemoveDir()
H A Dmk_agree_test.cpp59 if (sprintf_s(strBuf, sizeof(strBuf) - 1, "rm -rf %s", path) < 0) { in RemoveDir()
H A Dprivacy_enhancement_test.cpp56 if (sprintf_s(strBuf, sizeof(strBuf) - 1, "rm -rf %s", path) < 0) { in RemoveDir()
/base/startup/appspawn/service/hnp/base/
H A Dhnp_file.c147 ret = sprintf_s(filePath, MAX_FILE_PATH_LEN, "%s/%s", path, entry->d_name); in HnpDeleteAllFileInPath()
/base/startup/init/services/init/standard/
H A Dinit_service.c49 int len = sprintf_s(pidAdjPath, sizeof(pidAdjPath), "/proc/%d/oom_score_adj", service->pid); in WriteOomScoreAdjToService()
/base/startup/appspawn/modules/common/
H A Dappspawn_adapter.cpp227 int len = sprintf_s(user, MAX_USERID_LEN, "%u", userId); in InitAppCommonEnv()
/base/startup/appspawn/standard/
H A Dappspawn_service.c489 int len = sprintf_s(path, sizeof(path), APPSPAWN_MSG_DIR "%s/%s_%u", in GetMapMem()
1127 int len = sprintf_s(buffer[0], sizeof(buffer[0]), " %d ", property->forkCtx.fd[1]); in AppSpawnColdStartApp()
1129 len = sprintf_s(buffer[1], sizeof(buffer[1]), " %u ", property->client.flags); in AppSpawnColdStartApp()
1131 len = sprintf_s(buffer[2], sizeof(buffer[2]), " %u ", property->forkCtx.msgSize); // 2 2 index for dest path in AppSpawnColdStartApp()
1133 len = sprintf_s(buffer[3], sizeof(buffer[3]), " %u ", property->client.id); // 3 3 index for client id in AppSpawnColdStartApp()
1181 int len = sprintf_s(path, sizeof(path), APPSPAWN_MSG_DIR "%s/%s_%u", in GetAppSpawningCtxFromArg()
/base/location/services/location_locator/locator/source/
H A Dlocation_config_manager.cpp279 (void)sprintf_s(valueArray, sizeof(valueArray), "%d", value); in SetCachePrivacyType()
/base/location/frameworks/location_common/common/source/
H A Dlocation_data_rdb_manager.cpp220 auto ret = sprintf_s(valueArray, sizeof(valueArray), "%s", newSwitchStr.c_str()); in SetSwitchStateToSysparaForUser()
222 LBSLOGE(COMMON_UTILS, "sprintf_s failed, ret: %{public}d", ret); in SetSwitchStateToSysparaForUser()
/base/hiviewdfx/hitrace/frameworks/native/
H A Dcommon_utils.cpp51 if (sprintf_s(resolvedPath, PATH_MAX, "%s", src) == -1) { in CanonicalizeSpecPath()
52 HILOG_ERROR(LOG_CORE, "CanonicalizeSpecPath: sprintf_s %{pubilc}s failed.", src); in CanonicalizeSpecPath()
/base/security/crypto_framework/plugin/openssl_plugin/key/sym_key_generator/src/
H A Dsym_key_openssl.c208 if (sprintf_s(keySizeChar, MAX_KEY_STR_SIZE, "%d", keySize) < 0) { in GetAlgoName()
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/common/
H A Ddas_version_util.c108 if (sprintf_s(tmpStr, TMP_VERSION_STR_LEN, "%u.%u.%u", version->first, version->second, version->third) <= 0) { in VersionToString()
/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/frameworks/os_account_adapter/
H A Dos_account_adapter_test.cpp272 if (sprintf_s(strBuf, sizeof(strBuf) - 1, "rm -rf %s", path) < 0) { in RemoveDir()
/base/security/huks/test/reliability/src/
H A Dthree_stage_multi_thread.cpp228 (void)sprintf_s(alias, sizeof(alias), "%s%u", "test_three_stage", testIndex); in ThreeStageTest()
/base/startup/init/interfaces/innerkits/modulemgr/
H A Dmodulemgr.c221 int len = sprintf_s(moduleName, PATH_MAX - 1, "%s/%s", path, file->d_name); in ScanModules()
/base/telephony/ril_adapter/services/vendor/src/
H A Dvendor_adapter.c224 (void)sprintf_s(cmd, MAX_CMD_LENGTH, "AT+CFUN=%u,%d", newState, rst); in SetRadioState()
/kernel/liteos_a/testsuites/unittest/common/
H A DosTest.cpp460 ret = sprintf_s(dir_name, sizeof(dir_name), "%s/%s", dir, dp->d_name); in RemoveDir()

Completed in 17 milliseconds

1234567