Home
last modified time | relevance | path

Searched refs:snprintf_s (Results 176 - 200 of 423) sorted by relevance

12345678910>>...17

/kernel/liteos_a/testsuites/unittest/libc/posix/mqueue/full/
H A DIt_posix_queue_203.cpp43 ret = snprintf_s(mqname, MQUEUE_STANDARD_NAME_LENGTH, MQUEUE_STANDARD_NAME_LENGTH - 1, \ in Testcase()
H A DIt_posix_queue_202.cpp42 ret = snprintf_s(mqname, MQUEUE_STANDARD_NAME_LENGTH, MQUEUE_STANDARD_NAME_LENGTH - 1, \ in Testcase()
H A DIt_posix_queue_187.cpp39 ret = snprintf_s(mqname, MQUEUE_STANDARD_NAME_LENGTH, MQUEUE_STANDARD_NAME_LENGTH - 1, \ in Testcase()
/kernel/liteos_a/testsuites/unittest/libc/posix/mqueue/smoke/
H A DIt_posix_queue_003.cpp45 (void)snprintf_s(mqname, MQUEUE_STANDARD_NAME_LENGTH - 1, MQUEUE_STANDARD_NAME_LENGTH, "/mq003_%d", in Testcase()
/test/xts/device_attest_lite/services/core/include/utils/
H A Dattest_utils_log.h57 (d_curLen) += snprintf_s((d_curBuffer + d_curLen), (uint32_t)((d_maxLen) - (d_curLen)), \
/test/xts/device_attest/services/core/include/utils/
H A Dattest_utils_log.h59 (d_curLen) += snprintf_s((d_curBuffer + d_curLen), (uint32_t)((d_maxLen) - (d_curLen)), \
/kernel/liteos_m/components/net/lwip-2.1/porting/src/
H A Dsockets_porting.c321 ret = snprintf_s(ifreq.ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%.2s", netif->name); in lwip_ioctl_internal_SIOCGIFCONF()
323 LWIP_DEBUGF(NETIF_DEBUG, ("lwip_ioctl: snprintf_s ifr_name failed.")); in lwip_ioctl_internal_SIOCGIFCONF()
327 ret = snprintf_s(ifreq.ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%s", netif_get_name(netif)); in lwip_ioctl_internal_SIOCGIFCONF()
329 LWIP_DEBUGF(NETIF_DEBUG, ("lwip_ioctl: snprintf_s ifr_name failed.")); in lwip_ioctl_internal_SIOCGIFCONF()
573 ret = snprintf_s(ifr->ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%.2s", netif->name); in lwip_ioctl_internal_SIOCGIFNAME()
578 ret = snprintf_s(ifr->ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%s", netif_get_name(netif)); in lwip_ioctl_internal_SIOCGIFNAME()
/kernel/uniproton/src/net/lwip-2.1/src/
H A Dsockets.c312 ret = snprintf_s(ifreq.ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%.2s", netif->name); in OsLwipIoctlInternalSiocgifConf()
314 LWIP_DEBUGF(NETIF_DEBUG, ("lwip_ioctl: snprintf_s ifr_name failed.")); in OsLwipIoctlInternalSiocgifConf()
318 ret = snprintf_s(ifreq.ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%s", netif_get_name(netif)); in OsLwipIoctlInternalSiocgifConf()
320 LWIP_DEBUGF(NETIF_DEBUG, ("lwip_ioctl: snprintf_s ifr_name failed.")); in OsLwipIoctlInternalSiocgifConf()
553 ret = snprintf_s(ifr->ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%.2s", netif->name); in OsLwipIoctlInternalSiocgifName()
558 ret = snprintf_s(ifr->ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%s", netif_get_name(netif)); in OsLwipIoctlInternalSiocgifName()
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant_lib/
H A Ddriver_nl80211_hisi.c143 ret_s = snprintf_s(buf, buf_len, buf_len - 1, in wpa_driver_nl80211_driver_cmd()
176 ret_s = snprintf_s(buf, buf_len, buf_len - 1, "POWERMODE = %d\n", state); in wpa_driver_nl80211_driver_cmd()
527 len = snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, "TX_POWER %d", power); in wpa_driver_set_tx_power()
692 len = snprintf_s(ioctl_data.buf, MAX_PRIV_CMD_SIZE, MAX_PRIV_CMD_SIZE - 1, "WPAS_GET_CUST"); in get_cust_config_params()
/base/hiviewdfx/hilog/frameworks/libhilog/utils/
H A Dlog_utils.cpp71 int ret = snprintf_s(buf, len, len - 1, "%.1f", i); in Size2Str()
426 if (snprintf_s(path, CMDLINE_PATH_LEN, CMDLINE_PATH_LEN - 1, "/proc/%d/cmdline", pid) <= 0) { in GetNameByPid()
453 if (snprintf_s(path, STATUS_PATH_LEN, STATUS_PATH_LEN - 1, "/proc/%u/status", pid) <= 0) { in GetPPidByPid()
/base/startup/init/services/modules/bootevent/
H A Dbootevent.c313 INIT_CHECK_ONLY_ELOG(snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, "%lld", uptime) >= 0, in WriteBooteventSysParam()
314 "snprintf_s buf failed"); in WriteBooteventSysParam()
315 INIT_CHECK_ONLY_ELOG(snprintf_s(name, sizeof(name), sizeof(name) - 1, "ohos.boot.time.%s", paramName) >= 0, in WriteBooteventSysParam()
316 "snprintf_s name failed"); in WriteBooteventSysParam()
534 INIT_CHECK_ONLY_ELOG(snprintf_s(item->paramName, cmdLen, cmdLen - 1, "%s%s", in AddCmdBootEvent()
/base/update/updater/services/fs_manager/
H A Dpartitions.cpp90 if (snprintf_s(nameBuf, DEVPATH_SIZE, DEVPATH_SIZE - 1, "/sys/block/%s/device/%s", in ReadDeviceSysfsFile()
337 if (snprintf_s(partName, sizeof(partName), sizeof(partName) - 1, "%sp%d", devName.c_str(), partn) == -1) { in NewPartition()
343 snprintf_s(partName, sizeof(partName), sizeof(partName) - 1, "%s%d", devName.c_str(), partn) == -1) { in NewPartition()
/test/xts/hats/powermgr/power/hdi_power/common/
H A Dhdi_power_test.cpp262 ret = snprintf_s(stateBuf, MAX_PATH, sizeof(stateBuf) - 1, SUSPEND_STATE_PATH.c_str()); in HWTEST_F()
311 ret = snprintf_s(lockBuf, MAX_PATH, sizeof(lockBuf) - 1, LOCK_PATH.c_str());
339 ret = snprintf_s(unLockBuf, MAX_PATH, sizeof(unLockBuf) - 1, UNLOCK_PATH.c_str());
/base/security/device_auth/frameworks/deviceauth_lite/source/struct/
H A Dexchange_auth_data.c92 if (snprintf_s(ret_str, RET_STR_LENGTH, RET_STR_LENGTH - 1, "{\"%s\":\"%s\", \"%s\":\"%s\"}", FIELD_AUTH_ID, in make_exchange_data()
H A Drmv_auth_info_data.c83 if (snprintf_s(ret_str, RET_STR_LENGTH, RET_STR_LENGTH - 1, "{\"%s\":%d,\"%s\":\"%s\"}", FIELD_RMV_TYPE, in make_rmv_auth_info_data()
/base/security/selinux_adapter/framework/policycoreutils/src/
H A Dparam_checker.c43 if (snprintf_s(buf, len, len - 1, "parameter=%s pid=%d uid=%u gid=%u", msg->name, msg->ucred->pid, msg->ucred->uid, in SelinuxAuditCallback()
/base/startup/init/services/param/base/
H A Dparam_base.h38 snprintf_s((buffer), (buffSize), (buffSize) - 1, (format), ##__VA_ARGS__)
/base/tee/tee_client/services/teecd/src/
H A Dmisc_work_agent.c40 errno_t rc = snprintf_s(transControl->Args.GetTime.timeStr, sizeof(transControl->Args.GetTime.timeStr), in GetTimeWork()
46 tloge("snprintf_s error %d\n", rc); in GetTimeWork()
/base/update/updater/utils/
H A Dwrite_updater.cpp42 if (snprintf_s(boot.update, sizeof(boot.update), sizeof(boot.update) - 1, "--update_package=%s", in ExceptionUpdater()
44 cout << "WriteUpdaterMessage snprintf_s failed!" << endl; in ExceptionUpdater()
/base/time/time_service/utils/native/src/
H A Dtime_file_utils.cpp55 if (snprintf_s(path, CMDLINE_PATH_LEN, CMDLINE_PATH_LEN - 1, "/proc/%u/cmdline", pid) <= 0) { in GetNameByPid()
/kernel/liteos_a/testsuites/unittest/container/full/
H A DIt_pid_container_019.cpp40 int ret = snprintf_s(param, TEST_CMD_LEN, TEST_CMD_LEN - 1, "-p %d", pid); in ChildShell()
/kernel/liteos_m/testsuites/sample/posix/mqueue/
H A DIt_posix_queue_006.c43 ret = snprintf_s(mqname, MQUEUE_STANDARD_NAME_LENGTH, MQUEUE_STANDARD_NAME_LENGTH - 1, in Testcase()
H A DIt_posix_queue_009.c40 ret = snprintf_s(mqname, MQUEUE_STANDARD_NAME_LENGTH, MQUEUE_STANDARD_NAME_LENGTH - 1, in Testcase()
H A DIt_posix_queue_018.c44 (void)snprintf_s(mqname, MQUEUE_STANDARD_NAME_LENGTH - 1, MQUEUE_STANDARD_NAME_LENGTH, "/mq018_%d", in Testcase()
H A DIt_posix_queue_020.c42 ret = snprintf_s(mqname, MQUEUE_STANDARD_NAME_LENGTH, MQUEUE_STANDARD_NAME_LENGTH - 1, \ in Testcase()

Completed in 14 milliseconds

12345678910>>...17