Home
last modified time | relevance | path

Searched refs:snprintk (Results 1 – 25 of 150) sorted by relevance

123456

/Zephyr-latest/tests/kernel/common/src/
Dprintk.c227 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
230 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
232 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
234 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
236 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
238 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
240 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
242 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
244 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
247 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
[all …]
/Zephyr-latest/subsys/net/lib/shell/
Dnet_shell.c90 snprintk(addr_local, local_len, "[%s]:%u", in get_addresses()
94 snprintk(addr_remote, remote_len, "[%s]:%u", in get_addresses()
100 snprintk(addr_local, local_len, "%s:%d", in get_addresses()
109 snprintk(addr_remote, remote_len, "[%s]:%d", in get_addresses()
114 snprintk(addr_remote, remote_len, "%s:%d", in get_addresses()
121 snprintk(addr_local, local_len, "AF_UNSPEC"); in get_addresses()
123 snprintk(addr_local, local_len, "AF_PACKET"); in get_addresses()
125 snprintk(addr_local, local_len, "AF_CAN"); in get_addresses()
127 snprintk(addr_local, local_len, "AF_UNK(%d)", in get_addresses()
Diface_dynamic.h35 snprintk(iface_index_buffer[idx - 1], MAX_IFACE_STR_LEN, "%d", (uint8_t)idx); in set_iface_index_buffer()
59 snprintk(iface_help_buffer[idx - 1], MAX_IFACE_HELP_STR_LEN, in set_iface_index_help()
62 snprintk(iface_help_buffer[idx - 1], MAX_IFACE_HELP_STR_LEN, in set_iface_index_help()
Dcapture.c25 snprintk(str, str_len, "[%s]:%u", in get_address_str()
30 snprintk(str, str_len, "%s:%d", in get_address_str()
36 snprintk(str, str_len, "AF_PACKET"); in get_address_str()
39 snprintk(str, str_len, "AF_CAN"); in get_address_str()
41 snprintk(str, str_len, "AF_UNSPEC"); in get_address_str()
43 snprintk(str, str_len, "AF_UNK(%d)", addr->sa_family); in get_address_str()
Dsockets.c41 snprintk(thread_name, sizeof(thread_name) - 1, "%p", in walk_sockets()
64 snprintk(fd, sizeof(fd), "%d", obj->fd); in walk_sockets()
105 len += snprintk(pev_output + len, sizeof(pev_output) - len, in walk_socket_services()
119 snprintk(owner, sizeof(owner), "%s%s", in walk_socket_services()
123 snprintk(owner, sizeof(owner), "<unknown>"); in walk_socket_services()
Dconn.c72 snprintk(addr_local, sizeof(addr_local), "[%s]:%u", in conn_handler_cb()
76 snprintk(addr_remote, sizeof(addr_remote), "[%s]:%u", in conn_handler_cb()
82 snprintk(addr_local, sizeof(addr_local), "%s:%d", in conn_handler_cb()
86 snprintk(addr_remote, sizeof(addr_remote), "%s:%d", in conn_handler_cb()
92 snprintk(addr_local, sizeof(addr_local), "AF_UNSPEC"); in conn_handler_cb()
94 snprintk(addr_local, sizeof(addr_local), "AF_UNK(%d)", in conn_handler_cb()
Diface.c107 pos += snprintk(str + pos, sizeof(str) - pos, in iface_flags2str()
112 pos += snprintk(str + pos, sizeof(str) - pos, in iface_flags2str()
117 pos += snprintk(str + pos, sizeof(str) - pos, in iface_flags2str()
120 pos += snprintk(str + pos, sizeof(str) - pos, in iface_flags2str()
125 pos += snprintk(str + pos, sizeof(str) - pos, in iface_flags2str()
130 pos += snprintk(str + pos, sizeof(str) - pos, in iface_flags2str()
135 pos += snprintk(str + pos, sizeof(str) - pos, in iface_flags2str()
140 pos += snprintk(str + pos, sizeof(str) - pos, in iface_flags2str()
145 pos += snprintk(str + pos, sizeof(str) - pos, in iface_flags2str()
193 snprintk(ifname, sizeof(ifname), "?"); in iface_cb()
/Zephyr-latest/tests/benchmarks/latency_measure/src/
Dutils.h80 snprintk(cycle_str, 30, CYCLE_FORMAT, cycles); \
81 snprintk(nsec_str, 30, NSEC_FORMAT, nsec); \
83 snprintk(cycle_str, 30, "%15s", "FAILED"); \
84 snprintk(nsec_str, 30, "%15s", "FAILED"); \
/Zephyr-latest/drivers/wifi/eswifi/
Deswifi_socket.c59 snprintk(size, sizeof(size), "R1=%u\r", len); in __read_data()
67 snprintk(timeout, sizeof(timeout), "R2=%u\r", 30); /* 30 ms */ in __read_data()
91 snprintk(eswifi->buf, sizeof(eswifi->buf), "P2=%d\r", socket->port); in __eswifi_bind()
100 snprintk(eswifi->buf, sizeof(eswifi->buf), "P5=1\r"); in __eswifi_bind()
207 snprintk(eswifi->buf, sizeof(eswifi->buf), "P6=0\r"); in __eswifi_off_start_client()
215 snprintk(eswifi->buf, sizeof(eswifi->buf), "P5=0\r"); in __eswifi_off_start_client()
223 snprintk(eswifi->buf, sizeof(eswifi->buf), "P2=0\r"); in __eswifi_off_start_client()
231 snprintk(eswifi->buf, sizeof(eswifi->buf), "P3=%u.%u.%u.%u\r", in __eswifi_off_start_client()
242 snprintk(eswifi->buf, sizeof(eswifi->buf), "P4=%d\r", in __eswifi_off_start_client()
251 snprintk(eswifi->buf, sizeof(eswifi->buf), "P6=1\r"); in __eswifi_off_start_client()
[all …]
/Zephyr-latest/tests/benchmarks/wait_queues/src/
Dutils.h38 snprintk(cycle_str, 30, CYCLE_FORMAT, cycles); \
39 snprintk(nsec_str, 30, NSEC_FORMAT, nsec); \
/Zephyr-latest/tests/benchmarks/sched_queues/src/
Dutils.h40 snprintk(cycle_str, 30, CYCLE_FORMAT, cycles); \
41 snprintk(nsec_str, 30, NSEC_FORMAT, nsec); \
/Zephyr-latest/samples/subsys/portability/cmsis_rtos_v1/philosophers/src/
Dmain.c107 p += snprintk(state + p, STATE_LEN - p, "Philosopher %d [%s:%s%d] ", in print_phil_state()
113 p += snprintk(state + p, STATE_LEN - p, fmt, in print_phil_state()
116 p += snprintk(state + p, STATE_LEN - p, fmt, ""); in print_phil_state()
119 p += snprintk(state + p, STATE_LEN - p, "\n"); in print_phil_state()
/Zephyr-latest/include/zephyr/sys/
Dprintk.h67 #define snprintk(...) snprintf(__VA_ARGS__) macro
72 __printf_like(3, 4) int snprintk(char *str, size_t size,
/Zephyr-latest/modules/openthread/platform/
Dsettings.c60 ret = snprintk(path, sizeof(path), "%s%s%s", ctx->subtree, in ot_setting_delete_cb()
97 ret = snprintk(subtree, sizeof(subtree), "%s", in ot_setting_delete_subtree()
100 ret = snprintk(subtree, sizeof(subtree), "%s/%x", in ot_setting_delete_subtree()
236 ret = snprintk(path, sizeof(path), "%s/%x", OT_SETTINGS_ROOT_KEY, aKey); in otPlatSettingsGet()
265 ret = snprintk(path, sizeof(path), "%s/%x", OT_SETTINGS_ROOT_KEY, aKey); in otPlatSettingsSet()
288 ret = snprintk(path, sizeof(path), "%s/%x/%08x", in otPlatSettingsAdd()
/Zephyr-latest/drivers/gnss/
Dgnss_dump.c88 ret = snprintk(str, strsize, fmt, info->satellites_cnt, info->hdop / 1000, in gnss_dump_info()
104 ret = snprintk(str, strsize, fmt, in gnss_dump_nav_data()
124 ret = snprintk(str, strsize, fmt, utc->hour, utc->minute, utc->millisecond, in gnss_dump_time()
137 ret = snprintk(str, strsize, fmt, satellite->prn, satellite->snr, satellite->elevation, in gnss_dump_satellite()
/Zephyr-latest/tests/subsys/logging/log_api/src/
Dmain.c180 snprintk(str, sizeof(str), in ZTEST()
183 snprintk(str, sizeof(str), TEST_MSG_0, ll, ull, i); in ZTEST()
198 snprintk(str, sizeof(str), TEST_MSG_1, (double)f, 100, d); in ZTEST()
207 snprintk(str, sizeof(str), "wrn %s", dstr); in ZTEST()
252 snprintk(str, sizeof(str), in ZTEST()
255 snprintk(str, sizeof(str), "test"); in ZTEST()
545 snprintk(str, sizeof(str), in ZTEST()
548 snprintk(str, sizeof(str), TEST_DBG_MSG); in ZTEST()
569 snprintk(str, sizeof(str), in ZTEST()
572 snprintk(str, sizeof(str), TEST_INLINE_DBG_MSG); in ZTEST()
[all …]
/Zephyr-latest/tests/benchmarks/mbedtls/src/
Dbenchmark.c400 snprintk(title, sizeof(title), in main()
424 snprintk(title, sizeof(title), in main()
449 snprintk(title, sizeof(title), "AES-GCM-%d", in main()
475 snprintk(title, sizeof(title), "AES-CCM-%d", in main()
501 snprintk(title, sizeof(title), "ChaCha20-Poly1305"); in main()
521 snprintk(title, sizeof(title), "AES-CMAC-%d", in main()
555 snprintk(title, sizeof(title), in main()
581 snprintk(title, sizeof(title), in main()
728 snprintk(title, sizeof(title), "RSA-%d", in main()
788 snprintk(title, sizeof(title), "DHE-%d", dhm_sizes[i]); in main()
[all …]
/Zephyr-latest/subsys/bluetooth/host/
Duuid.c108 snprintk(str, len, "%04x", BT_UUID_16(uuid)->val); in bt_uuid_to_str()
111 snprintk(str, len, "%08x", BT_UUID_32(uuid)->val); in bt_uuid_to_str()
121 snprintk(str, len, "%08x-%04x-%04x-%04x-%08x%04x", in bt_uuid_to_str()
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_rw_link_format.c107 len = snprintk(buf, buflen, ";ver=%u.%u", obj->version_major, in put_corelink_version()
135 len = snprintk(buf, buflen, ";dim=%d", inst_count); in put_corelink_dimension()
162 used = snprintk(buf, buflen, ";%s=%d", name, attr->int_val); in put_attribute()
172 used = snprintk(buf, buflen, ";%s=%s", name, float_buf); in put_attribute()
307 len = snprintk(buf, buflen, ";ssid=%d", server_id); in put_corelink_ssid()
329 ret = snprintk(obj_buf, sizeof(obj_buf), "</%u>", path->obj_id); in put_obj_corelink()
379 ret = snprintk(obj_buf, sizeof(obj_buf), "</%u/%u>", in put_obj_inst_corelink()
450 ret = snprintk(obj_buf, sizeof(obj_buf), "</%u/%u/%u>", path->obj_id, in put_res_corelink()
516 ret = snprintk(obj_buf, sizeof(obj_buf), "</%u/%u/%u/%u>", path->obj_id, in put_res_inst_corelink()
Dlwm2m_rw_senml_cbor.c241 len = snprintk(name, sizeof("65535"), "%" PRIu16 "", path->res_id); in put_begin_r()
315 int len = snprintk(name, SENML_MAX_NAME_SIZE, in put_begin_ri()
511 snprintk(objlink_buf, fd->objlnk_sz, "%u:%u", value->obj_id, value->obj_inst); in put_objlnk()
744 snprintk(name, len + 1, "%s", rec->record_n.record_n.value); in do_write_op_item()
748 snprintk(fqn, sizeof(fqn), "%s%s", fd->basename, name); in do_write_op_item()
876 snprintk(basename, len + 1, "%s", record->record_bn.record_bn.value); in parse_composite_read_paths()
890 snprintk(name, len + 1, "%s", record->record_n.record_n.value); in parse_composite_read_paths()
895 snprintk(fqn, sizeof(fqn), "%s%s", basename, name); in parse_composite_read_paths()
1003 snprintk(fd->basename, len + 1, "%s", rec->record_bn.record_bn.value); in do_write_op_senml_cbor()
1016 snprintk(fd->basename, len + 1, "%s", in do_write_op_senml_cbor()
[all …]
/Zephyr-latest/include/zephyr/bluetooth/
Daddr.h227 return snprintk(str, len, "%02X:%02X:%02X:%02X:%02X:%02X", in bt_addr_to_str()
261 snprintk(type, sizeof(type), "0x%02x", addr->type); in bt_addr_le_to_str()
265 return snprintk(str, len, "%02X:%02X:%02X:%02X:%02X:%02X (%s)", in bt_addr_le_to_str()
/Zephyr-latest/subsys/net/
Dhostname.c87 snprintk(&hostname[sizeof(CONFIG_NET_HOSTNAME) - 1 + pos], 2 + 1, "%02x", in net_hostname_set_postfix()
124 snprintk(&hostname[net_hostname_len], hostname_len_remain, "%s", hostname_postfix); in net_hostname_set_postfix_str()
/Zephyr-latest/samples/subsys/logging/dictionary/src/
Dmain.c48 snprintk(&vs0[0], sizeof(vs0), "%s", "dynamic str"); in main()
51 snprintk(&vs1[0], sizeof(vs1), "%s", "another dynamic str"); in main()
/Zephyr-latest/samples/subsys/logging/syst/src/
Dmain.c58 snprintk(&vs0[0], sizeof(vs0), "%s", "dynamic str"); in log_msgs()
61 snprintk(&vs1[0], sizeof(vs1), "%s", "another dynamic str"); in log_msgs()
/Zephyr-latest/tests/subsys/logging/dictionary/src/
Dmain.c49 snprintk(&vs0[0], sizeof(vs0), "%s", "dynamic str"); in main()
52 snprintk(&vs1[0], sizeof(vs1), "%s", "another dynamic str"); in main()

123456