Home
last modified time | relevance | path

Searched refs:sprintf_s (Results 26 - 50 of 277) sorted by relevance

12345678910>>...12

/kernel/liteos_a/testsuites/unittest/net/resolv/smoke/
H A Dnet_resolv_test_006.cpp49 (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 EtherNtoaTest()
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 EtherNtoaTest()
/foundation/ability/ability_runtime/cj_environment/frameworks/cj_environment/src/
H A Ddynamic_loader_ohos.cpp43 auto ends = sprintf_s(g_dlError, sizeof(g_dlError), "%s", errMsg); in ReadDlError()
111 if (sprintf_s(g_sharedLibsSonames + cursor, sharedLibsSonamesLength - cursor, "%s:", allowList[i]) == -1) { in InitSharedLibsSonames()
149 if (sprintf_s(g_dlError, sizeof(g_dlError), errMsg.c_str()) == -1) { in DynamicInitNamespace()
/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/
H A Dspirv_cross_helpers_gles.cpp82 const int len = sprintf_s(buf, sizeof(buf), "%u %uu\n", c.id, value); in DefineForSpec()
89 const int len = sprintf_s(buf, sizeof(buf), "%u %d\n", c.id, value); in DefineForSpec()
97 const int len = sprintf_s(buf, sizeof(buf), "%u %f\n", c.id, value); in DefineForSpec()
/foundation/distributeddatamgr/kv_store/frameworks/native/dbm_kv_store/src/kv_store_impl_hal/
H A Ddbm_kv_store.c275 if (sprintf_s(sumFilePath, len, ItemPathFormat(db), db->dirPath, KV_SUM_FILE) < 0) { in GetSumFilePath()
348 if (sprintf_s(keyPath, MAX_KEY_PATH + 1, ItemPathFormat(db), db->dirPath, key) < 0) { in DeleteValueFromFile()
362 if (sprintf_s(keyPath, MAX_KEY_PATH + 1, ItemPathFormat(db), db->dirPath, key) < 0) { in IsNewItem()
390 if (sprintf_s(bakKey, MAX_KEY_LEN + 8, "%s_dbm_kv", item->key) < 0) { in DelItem()
411 if (sprintf_s(srcPath, MAX_KEY_PATH + 1, ItemPathFormat(db), db->dirPath, src) < 0) { in CopyValueToFile()
416 if (sprintf_s(destPath, MAX_KEY_PATH + 1, ItemPathFormat(db), db->dirPath, dest) < 0) { in CopyValueToFile()
436 if (sprintf_s(bakFile, MAX_KEY_PATH + 1, "%s_dbm_kv", item->key) < 0) { in RecoverItem()
464 if (sprintf_s(bakFile, MAX_KEY_PATH + 1, "%s_dbm_kv", item->key) < 0) { in CheckPointItem()
541 if (sprintf_s(value, KV_SUM_INDEX, "%d", sumIndex) < 0) { in SetSumIndexToFile()
758 if (sprintf_s(keyPat in GetValueByFile()
[all...]
/kernel/liteos_m/testsuites/unittest/xts/ipc/msg_queue/
H A Dmq_exp_test.c59 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqReceiveEAGAIN_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
102 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqReceiveEAGAIN_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
138 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqReceiveEINVAL_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
169 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedSendEAGAIN_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
231 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedSendEINVAL_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
282 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedSendEMSGSIZE_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
315 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedSendETIMEDOUT_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
355 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedReceiveEAGAIN_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
416 ret = sprintf_s(qName, MQ_NAME_LEN, "testMqTimedReceiveEINVAL_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
471 ret = sprintf_s(qNam
[all...]
H A Dmq_test.c60 ret = sprintf_s(qName, sizeof(qName), "testMqOneLevelCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
104 ret = sprintf_s(qName, sizeof(qName), "testMqTimedOneLevelCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
150 ret = sprintf_s(qName, sizeof(qName), "testMqAllOneLevelCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
200 ret = sprintf_s(qName, sizeof(qName), "testMqAllOneLevelCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
269 ret = sprintf_s(qName, sizeof(qName), "testMqTwoLevelCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
346 ret = sprintf_s(qName, sizeof(qName), "testMqTimedTwoThreadCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
425 ret = sprintf_s(qName, sizeof(qName), "testMqAllTwoThreadCom_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
469 ret = sprintf_s(qName, sizeof(qName), "testMqFunction_%d", GetRandom(10000)); /* 10000, common data for test, no special meaning */
/test/xts/acts/kernel_lite/ipc_posix/message_queue/
H A DIpcMqTest.cpp42 sprintf_s(qName, sizeof(qName), "testMqOneLevelCom_%d", GetRandom(10000)); in HWTEST_F()
77 sprintf_s(qName, sizeof(qName), "testMqTimedOneLevelCom_%d", GetRandom(10000)); in HWTEST_F()
118 sprintf_s(qName, sizeof(qName), "testMqAllOneLevelCom_%d", GetRandom(10000)); in HWTEST_F()
189 sprintf_s(qName, sizeof(qName), "testMqMaxLenTwoLevelCom_%d", GetRandom(10000)); in HWTEST_F()
244 sprintf_s(qName, sizeof(qName), "testMqTimedTwoLevelCom_%d", GetRandom(10000)); in HWTEST_F()
310 sprintf_s(qName, sizeof(qName), "testMqAllTwoLevelCom_%d", GetRandom(10000)); in HWTEST_F()
388 sprintf_s(qName, sizeof(qName), "testMqTwoLevelCom_%d", GetRandom(10000)); in HWTEST_F()
451 sprintf_s(qName, sizeof(qName), "testMqTimedTwoThreadCom_%d", GetRandom(10000)); in HWTEST_F()
517 sprintf_s(qName, sizeof(qName), "testMqAllTwoThreadCom_%d", GetRandom(10000)); in HWTEST_F()
555 sprintf_s(qNam in HWTEST_F()
[all...]
/kernel/liteos_a/testsuites/unittest/container/smoke/
H A DIt_time_container_008.cpp42 ret = sprintf_s(timeOff, STR_LEN, "monotonic %d %lld", SEC, NSEC); in WriteProcTime()
46 ret = sprintf_s(path, STR_LEN, "/proc/%d/time_offsets", pid); in WriteProcTime()
H A DIt_ipc_container_008.cpp69 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItIpcContainer008()
91 ret = sprintf_s(buf, configLen, "%d", value); in ItIpcContainer008()
H A DIt_ipc_container_007.cpp65 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItIpcContainer007()
86 ret = sprintf_s(buf, configLen, "%d", value); in ItIpcContainer007()
H A DIt_mnt_container_010.cpp69 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItMntContainer010()
91 ret = sprintf_s(buf, configLen, "%d", value); in ItMntContainer010()
H A DIt_mnt_container_009.cpp65 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItMntContainer009()
86 ret = sprintf_s(buf, configLen, "%d", value); in ItMntContainer009()
H A DIt_net_container_012.cpp69 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItNetContainer012()
91 ret = sprintf_s(buf, configLen, "%d", value); in ItNetContainer012()
H A DIt_net_container_011.cpp65 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItNetContainer011()
86 ret = sprintf_s(buf, configLen, "%d", value); in ItNetContainer011()
H A DIt_pid_container_033.cpp71 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItPidContainer033()
93 ret = sprintf_s(buf, configLen, "%d", value); in ItPidContainer033()
H A DIt_pid_container_032.cpp67 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItPidContainer032()
88 ret = sprintf_s(buf, configLen, "%d", value); in ItPidContainer032()
H A DIt_time_container_004.cpp60 ret = sprintf_s(timeOff, STR_LEN, "monotonic %d %d", SEC, NSEC); in WriteProcTime()
64 ret = sprintf_s(path, STR_LEN, "/proc/%d/time_offsets", pid); in WriteProcTime()
H A DIt_time_container_005.cpp60 ret = sprintf_s(timeOff, STR_LEN, "monotonic %d %d", SEC, NSEC); in WriteProcTime()
64 ret = sprintf_s(path, STR_LEN, "/proc/%d/time_offsets", pid); in WriteProcTime()
H A DIt_time_container_003.cpp42 ret = sprintf_s(pid_link, 100, "%s", linkBuffer.c_str()); /* 100: test len */ in childFunc()
46 ret = sprintf_s(targetpath, 100, "/proc/%d/container/time", getppid()); /* 100: test len */ in childFunc()
H A DIt_time_container_006.cpp75 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItTimeContainer006()
97 ret = sprintf_s(buf, configLen, "%d", value); in ItTimeContainer006()
H A DIt_user_container_007.cpp69 ret = sprintf_s(buf, configLen, "%d", usedCount + 1); in ItUserContainer007()
91 ret = sprintf_s(buf, configLen, "%d", value); in ItUserContainer007()
/foundation/multimedia/media_library/frameworks/services/media_mtp/src/
H A Dmtp_packet_tools.cpp787 if (sprintf_s(buffer, sizeof(buffer), "%04d%02d%02dT%02d%02d%02d", tm.tm_year + BEGIN_YEAR, tm.tm_mon + 1, in FormatDateTime()
845 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%02x, dec=%d", value, value) == -1) { in Int8ToString()
855 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%02x, dec=%u", value, value) == -1) { in UInt8ToString()
865 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%04x, dec=%d", value, value) == -1) { in Int16ToString()
875 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%04x, dec=%u", value, value) == -1) { in UInt16ToString()
885 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%08x, dec=%d", value, value) == -1) { in Int32ToString()
895 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%08x, dec=%u", value, value) == -1) { in UInt32ToString()
905 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%016" PRIx64 ", dec=%" PRIi64 "", value, value) == -1) { in Int64ToString()
915 if (sprintf_s(tmpbuf, sizeof(tmpbuf), "hex=%016" PRIx64 ", dec=%" PRIu64 "", value, value) == -1) { in UInt64ToString()
925 if (sprintf_s(tmpbu in Int128ToString()
[all...]
/kernel/liteos_m/testsuites/unittest/posix/src/fs/full/
H A Dposix_fs_full_test.c145 res = sprintf_s(tmpFileName, TEST_BUF_SIZE, "%s%02d", TEMP_DIRE_FILE, i);
147 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__);
158 res = sprintf_s(fileName, TEST_BUF_SIZE, "%s%02d", "eFile", index);
160 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__);
173 res = sprintf_s(tmpFileName, TEST_BUF_SIZE, "%s%02d", TEMP_DIRE_FILE, j);
175 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__);
213 res = sprintf_s(tmpDirName, TEST_BUF_SIZE, "%s%02d", TEMP_DIRF_DIR, i);
215 printf("[%s:%d] sprintf_s failed\n", __func__, __LINE__);
225 res = sprintf_s(dirName, TEST_BUF_SIZE, "%s%02d", "fDir", index);
227 printf("[%s:%d] sprintf_s faile
[all...]
/foundation/communication/bluetooth/frameworks/inner/c_adapter/
H A Dohos_bt_adapter_utils.cpp36 int ret = sprintf_s(temp, sizeof(temp), "%02X:%02X:%02X:%02X:%02X:%02X", in ConvertAddr()
39 HILOGE("ConvertAddr sprintf_s return error, ret -1"); in ConvertAddr()
64 (void)sprintf_s(temp, sizeof(temp), "%02X:%02X:%02X:%02X:%02X:%02X", in GetAddrFromByte()
/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/
H A Dwifi_hal_chba_interface.c140 if (sprintf_s(eventStr, sizeof(eventStr), "P2P-CONNECTED status =%d", startchba) < 0) { in ChbaStart()
141 LOGE("ChbaStop sprintf_s failed! "); in ChbaStart()
157 if (sprintf_s(eventStr, sizeof(eventStr), "P2P-CONNECTED status =%d", stopchba) < 0) { in ChbaStop()
158 LOGE("ChbaStop sprintf_s failed! "); in ChbaStop()

Completed in 12 milliseconds

12345678910>>...12