/base/startup/init/interfaces/innerkits/fs_manager/ |
H A D | fstab_mount.c | 312 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 D | raw_param.cpp | 55 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 D | cert_manager_file.c | 138 if (sprintf_s((char *)fNames[i].data, nameSize, "%s", dire.fileName) < 0) { in GetFileNames()
|
/base/startup/init/services/modules/reboot/ |
H A D | reboot_static.c | 60 int ret = sprintf_s(tmp, len, "%s%s", prefix, str); in Dup2String()
|
H A D | reboot.c | 53 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 D | config_policy_utils.c | 140 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 D | init_group_manager.c | 153 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 D | pseudonym_manager.c | 190 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 D | creds_manager_test.cpp | 63 if (sprintf_s(strBuf, sizeof(strBuf) - 1, "rm -rf %s", path) < 0) { in RemoveDir()
|
H A D | mk_agree_test.cpp | 59 if (sprintf_s(strBuf, sizeof(strBuf) - 1, "rm -rf %s", path) < 0) { in RemoveDir()
|
H A D | privacy_enhancement_test.cpp | 56 if (sprintf_s(strBuf, sizeof(strBuf) - 1, "rm -rf %s", path) < 0) { in RemoveDir()
|
/base/startup/appspawn/service/hnp/base/ |
H A D | hnp_file.c | 147 ret = sprintf_s(filePath, MAX_FILE_PATH_LEN, "%s/%s", path, entry->d_name);
in HnpDeleteAllFileInPath()
|
/base/startup/init/services/init/standard/ |
H A D | init_service.c | 49 int len = sprintf_s(pidAdjPath, sizeof(pidAdjPath), "/proc/%d/oom_score_adj", service->pid);
in WriteOomScoreAdjToService()
|
/base/startup/appspawn/modules/common/ |
H A D | appspawn_adapter.cpp | 227 int len = sprintf_s(user, MAX_USERID_LEN, "%u", userId); in InitAppCommonEnv()
|
/base/startup/appspawn/standard/ |
H A D | appspawn_service.c | 489 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 D | location_config_manager.cpp | 279 (void)sprintf_s(valueArray, sizeof(valueArray), "%d", value); in SetCachePrivacyType()
|
/base/location/frameworks/location_common/common/source/ |
H A D | location_data_rdb_manager.cpp | 220 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 D | common_utils.cpp | 51 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 D | sym_key_openssl.c | 208 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 D | das_version_util.c | 108 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 D | os_account_adapter_test.cpp | 272 if (sprintf_s(strBuf, sizeof(strBuf) - 1, "rm -rf %s", path) < 0) { in RemoveDir()
|
/base/security/huks/test/reliability/src/ |
H A D | three_stage_multi_thread.cpp | 228 (void)sprintf_s(alias, sizeof(alias), "%s%u", "test_three_stage", testIndex); in ThreeStageTest()
|
/base/startup/init/interfaces/innerkits/modulemgr/ |
H A D | modulemgr.c | 221 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 D | vendor_adapter.c | 224 (void)sprintf_s(cmd, MAX_CMD_LENGTH, "AT+CFUN=%u,%d", newState, rst); in SetRadioState()
|
/kernel/liteos_a/testsuites/unittest/common/ |
H A D | osTest.cpp | 460 ret = sprintf_s(dir_name, sizeof(dir_name), "%s/%s", dir, dp->d_name); in RemoveDir()
|