/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/ |
H A D | nstackx_dfile_dfx.c | 30 ret = sprintf_s(message, DUMP_INFO_MAX, in HidumpHelp() 57 retTemp = sprintf_s(message + ret, DUMP_INFO_MAX - ret, "\nsession id list:\n"); in HidumpList() 62 retTemp = sprintf_s(message + ret, DUMP_INFO_MAX - ret, "index %u sessionId: %u \n", count, node->sessionId); in HidumpList() 88 retTemp = sprintf_s(message + ret, DUMP_INFO_MAX - ret, "\ncapability: %x\n", session->capability); in HidumpInfoClient() 90 retTemp = sprintf_s(message + ret, DUMP_INFO_MAX - ret, "amendSendRate: "); in HidumpInfoClient() 95 retTemp = sprintf_s(message + ret, DUMP_INFO_MAX - ret, "%d ", peerInfoTemp->amendSendRate); in HidumpInfoClient() 98 retTemp = sprintf_s(message + ret, DUMP_INFO_MAX - ret, "\nIO read rate: %u KB/s\n", session->fileManager->iorRate); in HidumpInfoClient() 100 retTemp = sprintf_s(message + ret, DUMP_INFO_MAX - ret, "total send block num: %llu\n", in HidumpInfoClient() 120 retTemp = sprintf_s(message + ret, DUMP_INFO_MAX - ret, "\ncapability: %x\n", session->capability); in HidumpInfoServer() 122 retTemp = sprintf_s(messag in HidumpInfoServer() [all...] |
/foundation/multimedia/media_foundation/tests/unittest/common/include/ |
H A D | unittest_log.h | 28 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \ 39 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \ 49 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \ 58 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \ 67 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \
|
/foundation/multimedia/av_codec/test/unittest/common/ |
H A D | unittest_log.h | 51 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \ 62 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \ 73 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \ 82 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \ 91 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \ 100 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \
|
/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_digital_clock.cpp | 139 if (sprintf_s(buf[HOUR_ELEMENT], BUFFER_SIZE, format, currentHour_) < 0) { in UpdateClock() 142 if (sprintf_s(buf[MINUTE_ELEMENT], BUFFER_SIZE, "%02d", currentMinute_) < 0) { in UpdateClock() 148 if (sprintf_s(buf[HOUR_ELEMENT], BUFFER_SIZE, format, currentHour_ % HALF_DAY_IN_HOUR) < 0) { in UpdateClock() 151 if (sprintf_s(buf[MINUTE_ELEMENT], BUFFER_SIZE, "%02d", currentMinute_) < 0) { in UpdateClock() 157 if (sprintf_s(buf[HOUR_ELEMENT], BUFFER_SIZE, format, currentHour_ % HALF_DAY_IN_HOUR) < 0) { in UpdateClock() 160 if (sprintf_s(buf[MINUTE_ELEMENT], BUFFER_SIZE, formatForMinute, currentMinute_) < 0) { in UpdateClock() 163 if (sprintf_s(buf[SECOND_ELEMENT], BUFFER_SIZE, "%02d", currentSecond_) < 0) { in UpdateClock() 169 if (sprintf_s(buf[HOUR_ELEMENT], BUFFER_SIZE, format, currentHour_) < 0) { in UpdateClock() 172 if (sprintf_s(buf[MINUTE_ELEMENT], BUFFER_SIZE, formatForMinute, currentMinute_) < 0) { in UpdateClock() 175 if (sprintf_s(bu in UpdateClock() [all...] |
/foundation/multimedia/av_codec/test/nativedemo/include/ |
H A D | demo_log.h | 27 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \ 37 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \ 46 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \ 54 (void)sprintf_s(ch, LOG_MAX_SIZE, fmt, ##__VA_ARGS__); \
|
/test/xts/hats/kernel/syscalls/fileio/lsetxattr/ |
H A D | LsetxattrApiTest.cpp | 96 int num = sprintf_s(targetFilePath, BUFFER_SIZE, "%s/%s", OPEN_API_TEST_FILE, targetFile); in HWTEST_F() 130 int num = sprintf_s(targetFilePath, BUFFER_SIZE, "%s/%s", OPEN_API_TEST_FILE, targetFile); in HWTEST_F() 175 int num = sprintf_s(targetFilePath, BUFFER_SIZE, "%s/%s", OPEN_API_TEST_FILE, targetFile); in HWTEST_F() 209 int num = sprintf_s(targetFilePath, BUFFER_SIZE, "%s/%s", OPEN_API_TEST_FILE, targetFile); in HWTEST_F() 241 int num = sprintf_s(targetFilePath, BUFFER_SIZE, "%s/%s", OPEN_API_TEST_FILE, targetFile); in HWTEST_F() 281 int num = sprintf_s(targetFilePath, BUFFER_SIZE, "%s/%s", OPEN_API_TEST_FILE, targetFile); in HWTEST_F() 285 num = sprintf_s(linkFilePath, BUFFER_SIZE, "%s/%s", OPEN_API_TEST_FILE, linkPath); in HWTEST_F() 322 int num = sprintf_s(targetFilePath, BUFFER_SIZE, "%s/%s", OPEN_API_TEST_FILE, targetFile); in HWTEST_F() 326 num = sprintf_s(linkFilePath, BUFFER_SIZE, "%s/%s", OPEN_API_TEST_FILE, linkPath); in HWTEST_F() 368 int num = sprintf_s(targetFilePat in HWTEST_F() [all...] |
/foundation/arkui/ace_engine_lite/frameworks/common/memory/ |
H A D | mem_proc.cpp | 57 if (sprintf_s(markdata, MSG_LENGTH, "%ti.txt", seconds) < 0) { in ClearUp() 92 if (sprintf_s(markdata, MSG_LENGTH, "Phy:%d(KB)\n", uint32_t(pmc.WorkingSetSize / UNIT)) < 0) { in SysMemTracing() 101 if (sprintf_s(markdata, MSG_LENGTH, "Vir:%d(KB)\n", uint32_t(pmc.PagefileUsage / UNIT)) < 0) { in SysMemTracing() 136 if (sprintf_s(markdata, MSG_LENGTH, "jerry heap total:%d(KB)\n", uint32_t(total / UNIT)) < 0) { in JerryMemTracing() 145 if (sprintf_s(markdata, MSG_LENGTH, "jerry heap current:%d(KB)\n", uint32_t(current / UNIT)) < 0) { in JerryMemTracing() 154 if (sprintf_s(markdata, MSG_LENGTH, "jerry heap peak:%d(KB)\n", uint32_t(peak / UNIT)) < 0) { in JerryMemTracing()
|
/kernel/liteos_m/testsuites/unittest/posix/src/fs/pressure/ |
H A D | posix_fs_pressure_test.c | 162 res = sprintf_s(tmpFileName, TEST_BUF_SIZE, "%s%02d", TEMP_FILE_PATH, j); 164 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__); 180 res = sprintf_s(tmpFileName, TEST_BUF_SIZE, "%s%02d", TEMP_FILE_PATH, i); 182 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__); 190 res = sprintf_s(tmpDirName, TEST_BUF_SIZE, "%s%02d", TEMP_DIR_PATH, k); 192 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__); 202 res = sprintf_s(tmpDirName, TEST_BUF_SIZE, "%s%02d", TEMP_DIR_PATH, i); 204 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__); 212 res = sprintf_s(tmpFileName, TEST_BUF_SIZE, "%s%02d", TEMP_FILE_PATH, i); 214 printf("[%s:%d] sprintf_s faile [all...] |
/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/wifi_hal_module/hostapd_hal/ |
H A D | wifi_hostapd_hal.c | 392 if (sprintf_s(cmd, sizeof(cmd), "SET ssid %s", name) < 0) { in SetApName() 407 if (sprintf_s(cmd, sizeof(cmd), "SET rsn_pairwise %s", type) < 0) { in SetApRsnPairwise() 421 if (sprintf_s(cmd, sizeof(cmd), "SET wpa_pairwise %s", type) < 0) { in SetApWpaPairwise() 435 if (sprintf_s(cmd, sizeof(cmd), "SET wpa_key_mgmt %s", type) < 0) { in SetApWpaKeyMgmt() 449 retval = sprintf_s(cmd, sizeof(cmd), "SET wpa 0"); /* The authentication mode is NONE. */ in SetApWpaValue() 452 retval = sprintf_s(cmd, sizeof(cmd), "SET wpa 1"); /* The authentication mode is WPA-PSK. */ in SetApWpaValue() 455 retval = sprintf_s(cmd, sizeof(cmd), "SET wpa 2"); /* The authentication mode is WPA2-PSK. */ in SetApWpaValue() 491 if (sprintf_s(cmd, sizeof(cmd), "SET wpa_passphrase %s", pass) < 0) { in SetApPasswd() 502 if (sprintf_s(cmd, sizeof(cmd), "SET channel %d", channel) < 0) { in SetApChannel() 513 if (sprintf_s(cm in SetApWmm() [all...] |
/test/xts/hats/kernel/syscalls/ns/setns/ |
H A D | SetnsApiTest.cpp | 70 int ret = sprintf_s(path, PATH_MAX_SIZE - 1, "/proc/%d/ns/ipc", pid); in HWTEST_F() 81 ret = sprintf_s(path, PATH_MAX_SIZE - 1, "/proc/%d/ns/net", pid); in HWTEST_F() 92 ret = sprintf_s(path, PATH_MAX_SIZE - 1, "/proc/%d/ns/pid", pid); in HWTEST_F() 103 ret = sprintf_s(path, PATH_MAX_SIZE - 1, "/proc/%d/ns/uts", pid); in HWTEST_F()
|
/test/xts/acts/commonlibrary_lite/file_hal/src/ |
H A D | utils_file_reli_test.c | 70 int size = sprintf_s(fileName32, sizeof(fileName32), "%s%d", "testReli101-", j); 93 int size = sprintf_s(fileName32, sizeof(fileName32), "%s%d", "testReli101-", j); 114 int size = sprintf_s(fileName32, sizeof(fileName32), "%s%d", "testReli101-", j); 133 int size = sprintf_s(fileName32, sizeof(fileName32), "%s%d", "testReli101-", j); 153 int size = sprintf_s(fileName32, sizeof(fileName32), "%s%d", "testReli101-", j); 180 int size = sprintf_s(fileName32, sizeof(fileName32), "%s%d", "testReli101-", j); 201 int size = sprintf_s(fileName32, sizeof(fileName32), "%s%d", "testReli101-", j); 228 int size = sprintf_s(fileName32, sizeof(fileName32), "%s%d", "testReli101-", j);
|
/kernel/liteos_a/testsuites/unittest/process/plimits/ |
H A D | process_plimits_test.cpp | 754 if (sprintf_s(dirpath, TEST_BUFFER_SIZE, "/proc/plimits/%s", groupName) < 0) { in CreatePlimitGroup() 757 if (sprintf_s(procspath, TEST_BUFFER_SIZE, "%s/plimits.procs", dirpath) < 0) { in CreatePlimitGroup() 760 if (sprintf_s(periodpath, TEST_BUFFER_SIZE, "%s/sched.period", dirpath) < 0) { in CreatePlimitGroup() 763 if (sprintf_s(quotapath, TEST_BUFFER_SIZE, "%s/sched.quota", dirpath) < 0) { in CreatePlimitGroup() 773 if (sprintf_s(periodValue, TEST_BUFFER_SIZE, "%llu", periodUs) < 0) { in CreatePlimitGroup() 776 if (sprintf_s(quotaValue, TEST_BUFFER_SIZE, "%llu", quotaUs) < 0) { in CreatePlimitGroup() 789 if (sprintf_s(childPidFiles, TEST_BUFFER_SIZE, "%s", procspath) < 0) { in CreatePlimitGroup() 802 if (sprintf_s(dirpath, TEST_BUFFER_SIZE, "/proc/plimits/%s", groupName) < 0) { in CreatePlimitGroupWithoutLimit() 805 if (sprintf_s(procspath, TEST_BUFFER_SIZE, "%s/plimits.procs", dirpath) < 0) { in CreatePlimitGroupWithoutLimit() 813 if (sprintf_s(childPidFile in CreatePlimitGroupWithoutLimit() [all...] |
/kernel/liteos_a/testsuites/unittest/container/smoke/ |
H A D | It_time_container_002.cpp | 43 ret = sprintf_s(timeOff, STR_LEN, "monotonic %d %d", SEC, NSEC); in childFunc() 47 ret = sprintf_s(path, STR_LEN, "/proc/%d/time_offsets", getpid()); in childFunc() 77 ret = sprintf_s(timeOff, STR_LEN, "monotonic %d %d", SEC, NSEC); in WriteProcTime() 81 ret = sprintf_s(path, STR_LEN, "/proc/%d/time_offsets", pid); in WriteProcTime()
|
H A D | It_mnt_container_008.cpp | 66 ret = sprintf_s(old_mnt_link, PATH_LENGTH, "%s", linkBuffer.c_str()); in ItMntContainer008() 68 ret = sprintf_s(targetpath, PATH_LENGTH, "/proc/%d/container/mnt", childPid); in ItMntContainer008() 81 ret = sprintf_s(new_mnt_link, PATH_LENGTH, "%s", linkBuffer.c_str()); in ItMntContainer008()
|
H A D | It_time_container_007.cpp | 42 ret = sprintf_s(timeOff, STR_LEN, "monotonic %d %d", SEC, NSEC); in WriteProcTime() 46 ret = sprintf_s(path, STR_LEN, "/proc/%d/time_offsets", pid); in WriteProcTime()
|
/test/ostest/wukong/common/include/ |
H A D | special_test_object.h | 58 result = sprintf_s(buffer, sizeof(buffer), "Swap: (%d, %d) -> (%d, %d)", endX_, endY_, startX_, startY_); in toString() 60 result = sprintf_s(buffer, sizeof(buffer), "Swap: (%d, %d) -> (%d, %d)", startX_, startY_, endX_, endY_); in toString() 85 int result = sprintf_s(buffer, sizeof(buffer), "Point: (%d, %d)", x_, y_); in toString() 105 int result = sprintf_s(buffer, sizeof(buffer), "Bundlename: (%s)", bundlename_.c_str()); in toString()
|
/test/xts/hats/kernel/syscalls/fileio/lremovexattr/ |
H A D | LremovexattrApiTest.cpp | 104 int num = sprintf_s(tmpPath, BUFFER_SIZE, "%s/non_existing_dir", OPEN_API_TEST_FILE); in HWTEST_F() 124 int num = sprintf_s(tmpPath, BUFFER_SIZE, "%s/existing_file.txt", OPEN_API_TEST_FILE); in HWTEST_F() 156 int num = sprintf_s(tmpPath, BUFFER_SIZE, "%s/existing_file.txt", OPEN_API_TEST_FILE); in HWTEST_F() 182 int num = sprintf_s(tmpPath, BUFFER_SIZE, "%s/non_existing_file.txt", OPEN_API_TEST_FILE); in HWTEST_F()
|
/kernel/liteos_a/kernel/extended/container/ |
H A D | los_uts_container.c | 40 INT32 ret = sprintf_s(name->sysname, sizeof(name->sysname), "%s", KERNEL_NAME); in InitUtsContainer() 44 ret = sprintf_s(name->nodename, sizeof(name->nodename), "%s", KERNEL_NODE_NAME); in InitUtsContainer() 48 ret = sprintf_s(name->version, sizeof(name->version), "%s %u.%u.%u.%u %s %s", in InitUtsContainer() 54 ret = sprintf_s(name->machine, sizeof(name->machine), "%s", cpuInfo); in InitUtsContainer() 58 ret = sprintf_s(name->release, sizeof(name->release), "%u.%u.%u.%u", in InitUtsContainer()
|
/kernel/liteos_m/testsuites/unittest/posix/src/mqueue/ |
H A D | mqueue_func_test.c | 148 sprintf_s(qName, MQ_NAME_LEN, "testMqOpenEEXIST_%d", GetRandom(10000)); 178 sprintf_s(qName, MQ_NAME_LEN, "testMqOpenEINVAL_%d", GetRandom(10000)); 273 sprintf_s(qName, MQ_NAME_LEN, "testMqOpenENOENT_%d", GetRandom(10000)); 298 sprintf_s(qName[i], MQ_NAME_LEN, "testMqOpenENFILE_%d", i); 337 sprintf_s(qName, MQ_NAME_LEN, "testMqOpenENOSPC_%d", GetRandom(10000)); 375 sprintf_s(qName, MQ_NAME_LEN, "testMqSendEAGAIN_%d", GetRandom(10000)); 408 sprintf_s(qName, MQ_NAME_LEN, "testMqSendEAGAIN_%d", GetRandom(10000)); 465 sprintf_s(qName, MQ_NAME_LEN, "testMqSendEINVAL_%d", GetRandom(10000)); 497 sprintf_s(qName, MQ_NAME_LEN, "testMqReceiveEAGAIN_%d", GetRandom(10000));
|
/foundation/multimedia/av_codec/test/unittest/hcodec_test/unittest/ |
H A D | hcodec_list_unit_test.cpp | 50 (void)sprintf_s(info, sizeof(info), "[%d,%d]", obj.minVal, obj.maxVal); in GetPrintInfo() 57 (void)sprintf_s(info, sizeof(info), "[w:%d,h:%d]", obj.width, obj.height); in GetPrintInfo() 66 (void)sprintf_s(tmp, sizeof(tmp), "%d,", one); in GetPrintInfo() 77 (void)sprintf_s(tmp, sizeof(tmp), "%d", iter->first); in GetPrintInfo()
|
/kernel/liteos_a/testsuites/unittest/process/basic/process/full/ |
H A D | process_test_066.cpp | 159 (void)sprintf_s(temp1, NUMMAX, "pgid = %d", attr.__pgrp); in TestSpawnAttr() 161 (void)sprintf_s(temp1, NUMMAX, "prio = %d", attr.__prio); in TestSpawnAttr() 163 (void)sprintf_s(temp1, NUMMAX, "pol = %d", attr.__pol); in TestSpawnAttr() 165 (void)sprintf_s(temp1, NUMMAX, "uid = %d", getuid()); in TestSpawnAttr()
|
H A D | process_test_067.cpp | 157 (void)sprintf_s(temp1, NUMMAX, "pgid = %d", attr.__pgrp); in TestSpawnAttr() 159 (void)sprintf_s(temp1, NUMMAX, "prio = %d", attr.__prio); in TestSpawnAttr() 161 (void)sprintf_s(temp1, NUMMAX, "pol = %d", attr.__pol); in TestSpawnAttr() 163 (void)sprintf_s(temp1, NUMMAX, "uid = %d", getuid()); in TestSpawnAttr()
|
/foundation/distributeddatamgr/kv_store/frameworks/native/kv_store/src/kvstore_impl_posix/ |
H A D | kv_store.c | 46 if (sprintf_s(keyPath, MAX_KEY_PATH + 1, "%s/%s/%s", dataPath, KVSTORE_PATH, key) < 0) {
in GetResolvedPath() 127 if (sprintf_s(keyPath, MAX_KEY_PATH + 1, "%s/%s/%s", dataPath, KVSTORE_PATH, key) < 0) {
in DeleteValueFromFile() 145 if (sprintf_s(kvPath, MAX_KEY_PATH + 1, "%s/%s", dataPath, KVSTORE_PATH) < 0) {
in InitKv() 164 if (sprintf_s(kvPath, MAX_KEY_PATH + 1, "%s/%s", dataPath, KVSTORE_PATH) < 0) {
in GetCurrentItem() 176 if (sprintf_s(fullPath, MAX_KEY_PATH + 1, "%s/%s", kvPath, dir->d_name) < 0) {
in GetCurrentItem() 199 if (sprintf_s(keyPath, MAX_KEY_PATH + 1, "%s/%s/%s", dataPath, KVSTORE_PATH, key) < 0) {
in NewItem()
|
/foundation/arkui/napi/module_manager/ |
H A D | native_module_manager.cpp | 429 if (sprintf_s(sharedLibsSonames_ + cursor, sharedLibsSonamesLength - cursor, "%s:", allowList[i]) == -1) { in CreateSharedLibsSonames() 753 if (sprintf_s(nativeModulePath[0], pathLength, "%s/%s", prefix, dupModuleName) == -1) { in GetNativeModulePath() 763 if (sprintf_s(nativeModulePath[0], pathLength, "lib%s%s", dupModuleName, soPostfix) == -1) { in GetNativeModulePath() 767 if (sprintf_s(nativeModulePath[0], pathLength, "%s/lib%s%s%s", in GetNativeModulePath() 772 if (sprintf_s(nativeModulePath[1], pathLength, "%s/lib%s_napi%s%s", in GetNativeModulePath() 777 if (sprintf_s(nativeModulePath[2], pathLength, "%s/%s%s", // 2 : Element index value in GetNativeModulePath() 784 if (sprintf_s(nativeModulePath[0], pathLength, "lib%s%s", dupModuleName, soPostfix) == -1) { in GetNativeModulePath() 793 sprintfResult = sprintf_s(nativeModulePath[0], pathLength, "%s/lib%s%s", in GetNativeModulePath() 797 sprintfResult = sprintf_s(nativeModulePath[0], pathLength, "lib%s%s", dupModuleName, soPostfix); in GetNativeModulePath() 804 if (sprintf_s(nativeModulePat in GetNativeModulePath() [all...] |
/kernel/liteos_a/testsuites/unittest/net/resolv/smoke/ |
H A D | net_resolv_test_007.cpp | 49 (void)sprintf_s(str1, sizeof(str1), "%x:%x:%x:%x:%x:%x", r[0], r[1], r[2], r[3], r[4], r[5]); in EtherNtoarTest() 51 (void)sprintf_s(str2, sizeof(str2), "%.2x:%.2x:%.2x:%.2x:%.2x:%.2x", r[0], r[1], r[2], r[3], r[4], r[5]); in EtherNtoarTest()
|