Home
last modified time | relevance | path

Searched refs:snprintf_s (Results 1 - 25 of 180) sorted by relevance

12345678

/foundation/multimedia/av_codec/test/nativedemo/avmuxer/
H A Dnative_avmuxer_demo.c356 (void)snprintf_s(g_muxerParam.outputFormatType, TYPE_BUFFER_SIZE, TYPE_BUFFER_SIZE - 1, "%s", "mp4"); in NativeSelectMuxerType()
360 (void)snprintf_s(g_muxerParam.outputFormatType, TYPE_BUFFER_SIZE, TYPE_BUFFER_SIZE - 1, "%s", "m4a"); in NativeSelectMuxerType()
364 (void)snprintf_s(g_muxerParam.outputFormatType, TYPE_BUFFER_SIZE, TYPE_BUFFER_SIZE - 1, "%s", "amr"); in NativeSelectMuxerType()
368 (void)snprintf_s(g_muxerParam.outputFormatType, TYPE_BUFFER_SIZE, TYPE_BUFFER_SIZE - 1, "%s", "mp3"); in NativeSelectMuxerType()
372 (void)snprintf_s(g_muxerParam.outputFormatType, TYPE_BUFFER_SIZE, TYPE_BUFFER_SIZE - 1, "%s", "wav"); in NativeSelectMuxerType()
376 (void)snprintf_s(g_muxerParam.outputFormatType, TYPE_BUFFER_SIZE, TYPE_BUFFER_SIZE - 1, "%s", "mp4"); in NativeSelectMuxerType()
391 (void)snprintf_s(g_muxerParam.runModeType, TYPE_BUFFER_SIZE, TYPE_BUFFER_SIZE - 1, "%s", RUN_NORMAL); in NativeSelectRunMode()
395 (void)snprintf_s(g_muxerParam.runModeType, TYPE_BUFFER_SIZE, TYPE_BUFFER_SIZE - 1, "%s", RUN_MUL_THREAD); in NativeSelectRunMode()
399 (void)snprintf_s(g_muxerParam.runModeType, TYPE_BUFFER_SIZE, TYPE_BUFFER_SIZE - 1, "%s", RUN_NORMAL); in NativeSelectRunMode()
412 (void)snprintf_s(g_muxerPara in NativeSelectAudio()
[all...]
/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/wifi_hal_module/wpa_supplicant_hal/wpa_sta_hal/
H A Dwifi_supplicant_hal.c113 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s STATUS", this->ifname) < 0) { in WpaCliCmdStatus()
165 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s ADD_NETWORK", this->ifname) < 0) { in WpaCliCmdAddNetworks()
182 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s RECONNECT", this->ifname) < 0) { in WpaCliCmdReconnect()
196 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s REASSOCIATE", this->ifname) < 0) { in WpaCliCmdReassociate()
210 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s DISCONNECT", this->ifname) < 0) { in WpaCliCmdDisconnect()
224 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s SAVE_CONFIG", this->ifname) < 0) { in WpaCliCmdSaveConfig()
275 res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s SET_NETWORK %d %s \"%s\"", this->ifname, in WpaCliCmdSetNetwork()
278 res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s SET_NETWORK %d %s %s", this->ifname, in WpaCliCmdSetNetwork()
295 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s ENABLE_NETWORK %d", this->ifname, networkId) < 0) { in WpaCliCmdEnableNetwork()
309 if (snprintf_s(cm in WpaCliCmdSelectNetwork()
[all...]
/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/wifi_hal_module/wpa_supplicant_hal/wpa_p2p_hal/
H A Dwifi_p2p_hal.c68 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s WPS_PBC", this->groupIfname) < 0) { in WpaP2pCliCmdWpsPbc()
74 if (snprintf_s(cmd + pos, sizeof(cmd) - pos, sizeof(cmd) - pos - 1, " %s", bssid) < 0) { in WpaP2pCliCmdWpsPbc()
103 res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s WPS_PIN any %s", this->groupIfname, in WpaP2pCliCmdWpsPin()
106 res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s WPS_PIN any", this->groupIfname); in WpaP2pCliCmdWpsPin()
108 res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s WPS_PIN %s", this->groupIfname, argv->bssid); in WpaP2pCliCmdWpsPin()
134 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s P2P_SET ps %d", this->groupIfname, enable) < 0) { in WpaP2pCliCmdSetPowerSave()
152 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s SET p2p_group_idle %d", this->groupIfname, in WpaP2pCliCmdSetGroupIdle()
171 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s SET device_name %s", this->ifName, name) < 0) { in WpaP2pCliCmdSetWpsName()
189 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s SET device_type %s", this->ifName, type) < 0) { in WpaP2pCliCmdSetWpsDeviceType()
208 if (snprintf_s(cm in WpaP2pCliCmdSetWpsSecDeviceType()
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/app/wifiiot_app/src/
H A Dblackbox_adapter_impl.c68 len = snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, in SaveSysInfo()
75 printf("snprintf_s failed or the buffer is too short!\r\n"); in SaveSysInfo()
95 len = snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, in SaveExcpInfo()
109 printf("snprintf_s failed or the buffer is too short!\r\n"); in SaveExcpInfo()
126 len = snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, in SaveRegInfo()
135 len = snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, in SaveRegInfo()
143 len = snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, in SaveRegInfo()
151 len = snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, in SaveRegInfo()
159 len = snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, in SaveRegInfo()
167 len = snprintf_s(bu in SaveRegInfo()
[all...]
/foundation/communication/wifi/wifi/base/cRPC/src/
H A Dserial.c35 if (snprintf_s(szTmp, sizeof(szTmp), sizeof(szTmp) - 1, "%s%c", ((type == 0) ? "N" : "C"), context->cSplit) < 0) { in WriteBegin()
56 if (snprintf_s(buf, len + 1, len, "%s%c", funcName, context->cSplit) < 0) { in WriteFunc()
74 if (snprintf_s(szTmp, sizeof(szTmp), sizeof(szTmp) - 1, "%d%c", iData, context->cSplit) < 0) { in WriteInt()
87 if (snprintf_s(szTmp, sizeof(szTmp), sizeof(szTmp) - 1, "%ld%c", lData, context->cSplit) < 0) { in WriteLong()
100 if (snprintf_s(szTmp, sizeof(szTmp), sizeof(szTmp) - 1, "%" PRId64 "%c", iData, context->cSplit) < 0) { in WriteInt64()
113 if (snprintf_s(szTmp, sizeof(szTmp), sizeof(szTmp) - 1, "%.6lf%c", dData, context->cSplit) < 0) { in WriteDouble()
126 if (snprintf_s(szTmp, sizeof(szTmp), sizeof(szTmp) - 1, "%c%c", cData, context->cSplit) < 0) { in WriteChar()
146 if (snprintf_s(buf, len + 1, len, "%s%c", pStr, context->cSplit) < 0) { in WriteStr()
171 if (snprintf_s(buf + pos, inLen - pos, inLen - pos - 1, "%02x", uStr[i]) < 0) { in WriteUStr()
/device/qemu/esp32/adapter/hals/utils/file/src/
H A Dhal_file.c40 (void)snprintf_s(tmpPath, LITTLEFS_MAX_LFN_LEN, LITTLEFS_MAX_LFN_LEN, "/littlefs/%s", path); in HalFileOpen()
62 (void)snprintf_s(tmpPath, LITTLEFS_MAX_LFN_LEN, LITTLEFS_MAX_LFN_LEN, "/littlefs/%s", path); in HalFileDelete()
71 (void)snprintf_s(tmpPath, LITTLEFS_MAX_LFN_LEN, LITTLEFS_MAX_LFN_LEN, "/littlefs/%s", path); in HalFileStat()
/device/qemu/SmartL_E802/adapter/hals/utils/file/src/
H A Dhal_file.c40 (void)snprintf_s(tmpPath, LITTLEFS_MAX_LFN_LEN, LITTLEFS_MAX_LFN_LEN, "/littlefs/%s", path); in HalFileOpen()
62 (void)snprintf_s(tmpPath, LITTLEFS_MAX_LFN_LEN, LITTLEFS_MAX_LFN_LEN, "/littlefs/%s", path); in HalFileDelete()
71 (void)snprintf_s(tmpPath, LITTLEFS_MAX_LFN_LEN, LITTLEFS_MAX_LFN_LEN, "/littlefs/%s", path); in HalFileStat()
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/ext_util/
H A Dbase_interface.c141 if (snprintf_s(key, sizeof(key), sizeof(key) - 1, "%s:%s", (section ? section : ""), field) < 0) { in SectGetCfgInt()
156 if (snprintf_s(key, sizeof(key), sizeof(key) - 1, "%s:%s", (section ? section : ""), field) < 0) { in SectGetCfgDouble()
171 if (snprintf_s(key, sizeof(key), sizeof(key) - 1, "%s:%s", (section ? section : ""), field) < 0) { in SectGetCfgBool()
186 if (snprintf_s(key, sizeof(key), sizeof(key) - 1, "%s:%s", (section ? section : ""), field) < 0) { in SectGetCfgStr()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/app_network_speed_limit/
H A Dspeed_limit_configs_writer.cpp42 int ret = snprintf_s(awareCtrlStr, sizeof(awareCtrlStr), MAX_ARRAY_LENGTH - 1, "1:%d", mode); in SetBgLimitMode()
44 WIFI_LOGE("SetBgLimitMode snprintf_s failed."); in SetBgLimitMode()
85 ret = snprintf_s(tempStr, sizeof(tempStr), MAX_ARRAY_LENGTH - 1, "%d", idArray[i]); in SetUidPids()
87 ret = snprintf_s(tempStr, sizeof(tempStr), MAX_ARRAY_LENGTH - 1, "%s;%d", idStr, idArray[i]); in SetUidPids()
/third_party/bounds_checking_function/src/
H A Dsnprintf_s.c11 * Description: snprintf_s function
20 * The snprintf_s function is equivalent to the snprintf function
22 * The snprintf_s function formats and stores count or fewer characters in
31 * in bytes for snprintf_s or size in words for snwprintf_s.
47 int snprintf_s(char *strDest, size_t destMax, size_t count, const char *format, ...) in snprintf_s() function
60 EXPORT_SYMBOL(snprintf_s); variable
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/
H A Doal_shellcmd.c63 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "%s", &argv[0][2]) == -1) { in wifi_shell_cmd()
70 ret = snprintf_s(&cmd[len], sizeof(cmd) - len, sizeof(cmd) - len - 1, " %s", argv[i]); in wifi_shell_cmd()
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/scenario/cnn_trash_classify/
H A Dcnn_trash_classify.c145 if (snprintf_s(audioThreadName, BUFFER_SIZE, BUFFER_SIZE - 1, "AudioProcess") < 0) { in CnnTrashClassifyLoadModel()
189 offset += snprintf_s(buf + offset, size - offset, size - offset - 1, "trash classify: {"); in CnnTrashClassifyFlag()
230 offset += snprintf_s(buf + offset, size - offset, size - offset - 1, in CnnTrashClassifyFlag()
234 offset += snprintf_s(buf + offset, size - offset, size - offset - 1, " }"); in CnnTrashClassifyFlag()
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oam/
H A Doam_log.c75 offset = snprintf_s(buffer, OAM_PRINT_FORMAT_LENGTH, OAM_PRINT_FORMAT_LENGTH - 1, "[%d][%s:%d]", in oal_print_nlogs()
90 if (snprintf_s(buffer + offset, in oal_print_nlogs()
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/interconnection_server/
H A Dhisignalling.c54 len = snprintf_s(buffer, sizeof(buffer), sizeof(buffer) - 1, "%d", pin); in GpioExport()
88 len = snprintf_s(buffer, sizeof(buffer), sizeof(buffer) - 1, "%d", pin); in GpioUnexport()
112 int len = snprintf_s(path, sizeof(path), sizeof(path) - 1, "/sys/class/gpio/gpio%d/direction", pin); in GpioDirection()
148 int len = snprintf_s(path, sizeof(path), sizeof(path) - 1, "/sys/class/gpio/gpio%d/value", pin); in GpioWrite()
182 int len = snprintf_s(path, sizeof(path), sizeof(path) - 1, "/sys/class/gpio/gpio%d/value", pin); in GpioRead()
238 int len = snprintf_s(path, sizeof(path), sizeof(path) - 1, "/sys/class/gpio/gpio%d/edge", pin); in GpioEdge()
/third_party/musl/libc-test/src/functionalext/unittest/
H A Dunit_test_hilog_adapter.c93 int res = snprintf_s(finalCommand, COMMAND_SIZE, READ_SIZE, "%s%s", command, needToMatch); in CheckHiLogPrint()
95 printf("CheckHiLogPrint command generate snprintf_s failed\n"); in CheckHiLogPrint()
127 int res = snprintf_s(proc_path, PROC_PATH_LENGTH, PROC_PATH_LENGTH - 1, "/proc/%d/fd", getpid()); in CheckHiLogdLinked()
129 printf("CheckHiLogdLinked getpid snprintf_s failed\n"); in CheckHiLogdLinked()
142 res = snprintf_s(fd_path, sizeof(fd_path), sizeof(fd_path) - 1, "%s/%s", proc_path, entry->d_name); in CheckHiLogdLinked()
144 printf("CheckHiLogdLinked fd search snprintf_s failed\n"); in CheckHiLogdLinked()
/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/fillp/
H A Dfillp_mgt_msg_log.c91 return snprintf_s(buf, len, len - 1, " init rtt: %llu", conn->calcRttDuringConnect); in FillpExtParaRttFormat()
96 return snprintf_s(buf, len, len - 1, " peer pkt size: %u", conn->peerPktSize); in FillpExtParaPktSizeFormat()
109 FILLP_INT ret = snprintf_s(buf + formatLen, len - formatLen, (len - formatLen) - 1, " %s", bitmapStr[i]); in FillpBitmapFormat()
111 FILLP_LOGERR("snprintf_s failed"); in FillpBitmapFormat()
122 FILLP_INT ret = snprintf_s(buf, len, len - 1, " characters: 0x%08X", conn->peerCharacters); in FillpExtParaCharacterFormat()
124 FILLP_LOGERR("snprintf_s failed"); in FillpExtParaCharacterFormat()
143 FILLP_INT ret = snprintf_s(buf, len, len - 1, " FC ALG: 0x%02X", conn->peerFcAlgs); in FillpExtParaFcAlgFormat()
145 FILLP_LOGERR("snprintf_s failed"); in FillpExtParaFcAlgFormat()
/foundation/multimedia/media_foundation/engine/plugin/plugins/source/http_source/download/
H A Dhttp_curl_client.cpp126 snprintf_s(requestRange, sizeof(requestRange), sizeof(requestRange) - 1, "%ld-%ld", in RequestData()
129 snprintf_s(requestRange, sizeof(requestRange), sizeof(requestRange) - 1, "%ld-", startPos); in RequestData()
/foundation/resourceschedule/ffrt/src/dfx/dump/
H A Ddump.cpp129 return snprintf_s(buf, len, len - 1, "%s", dumpInfo.c_str()); in dump_info_all()
131 return snprintf_s(buf, len, len - 1, "|-> FFRT has done all tasks, pid: %u \n", GetPid()); in dump_info_all()
/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/
H A Dwifi_hal_adapter.c179 if (snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, "%s/wpa_supplicant/%s", CONFIG_ROOR_DIR, configName) < 0) { in CopyConfigFile()
180 LOGE("snprintf_s dest dir failed."); in CopyConfigFile()
209 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, in CopyConfigFile()
211 LOGE("snprintf_s cp cmd failed."); in CopyConfigFile()
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/core/
H A Dnstackx_util.c188 ret = snprintf_s(buf, len, len - 1, "%hhu.%hhu.%hhu.*", in IpAddrAnonymousFormat()
192 ret = snprintf_s(buf, len, len - 1, "%x:%x:%x*:*:*:*:*:*", in IpAddrAnonymousFormat()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant_lib/
H A Ddriver_nl80211_hisi.c142 ret_s = snprintf_s(buf, buf_len, buf_len - 1, in wpa_driver_nl80211_driver_cmd()
165 ret_s = snprintf_s(buf, buf_len, buf_len - 1, "POWERMODE = %d\n", state); in wpa_driver_nl80211_driver_cmd()
503 len = snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, "TX_POWER %d", power); in wpa_driver_set_tx_power()
662 len = snprintf_s(buff, MAX_PRIV_CMD_SIZE, MAX_PRIV_CMD_SIZE - 1, "WPAS_GET_CUST"); in get_cust_config_params()
664 len = snprintf_s(ioctl_data.buf, MAX_PRIV_CMD_SIZE, MAX_PRIV_CMD_SIZE - 1, "WPAS_GET_CUST"); in get_cust_config_params()
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/dependency/
H A Daudio_test.c98 s32Ret = snprintf_s(aszLibPath, FILE_NAME_LEN, FILE_NAME_LEN - 1, "/sharefs/"); in SAMPLE_AUDIO_AddLibPath()
100 SAMPLE_PRT("\n snprintf_s fail! ret = 0x%x", s32Ret); in SAMPLE_AUDIO_AddLibPath()
127 if (snprintf_s(aszFileName, FILE_NAME_LEN, FILE_NAME_LEN - 1, "/sharefs/audio_chn%d.%s", in SAMPLE_AUDIO_OpenAdecFile_AAC()
133 if (snprintf_s(aszFileName, FILE_NAME_LEN, FILE_NAME_LEN - 1, in SAMPLE_AUDIO_OpenAdecFile_AAC()
140 if (snprintf_s(aszFileName, FILE_NAME_LEN, FILE_NAME_LEN - 1, in SAMPLE_AUDIO_OpenAdecFile_AAC()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/
H A Dwifi_p2p_upnp_service_request.cpp44 if (snprintf_s(version, sizeof(version), sizeof(version) - 1, "%02x ", WifiP2pUpnpServiceInfo::VERSION_1_0) < 0) { in Create()
45 WIFI_LOGE("ifiP2pUpnpServiceRequest::Create snprintf_s failed."); in Create()
/foundation/graphic/graphic_2d/rosen/modules/utils/
H A Dstring_utils.h35 int len = ::snprintf_s(buf, sizeof(buf), sizeof(buf)-1, fmt, args...); in AppendFormat()
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/manager/pnp_server/
H A Daudio_pnp_server.cpp47 ret = snprintf_s(event, AUDIO_PNP_INFO_LEN_MAX, AUDIO_PNP_INFO_LEN_MAX - 1, in GetAudioEventInfo()
51 AUDIO_ERR_LOG("snprintf_s failed"); in GetAudioEventInfo()
202 ret = snprintf_s(pnpInfo, AUDIO_EVENT_INFO_LEN_MAX, AUDIO_EVENT_INFO_LEN_MAX - 1, "EVENT_TYPE=%u;DEVICE_TYPE=%u", in UpdateUsbHeadset()
205 AUDIO_ERR_LOG("snprintf_s fail!"); in UpdateUsbHeadset()

Completed in 17 milliseconds

12345678