Home
last modified time | relevance | path

Searched refs:snprintf (Results 1 – 25 of 51) sorted by relevance

123

/lib/lwip/lwip/contrib/examples/httpd/ssi_example/
A Dssi_example.c120 printed = snprintf(pcInsert, iInsertLen, "Hello World!"); in ssi_example_ssi_handler()
126 printed = snprintf(pcInsert, iInsertLen, "%d", counter); in ssi_example_ssi_handler()
133 printed = snprintf(pcInsert, iInsertLen, "part0"); in ssi_example_ssi_handler()
137 printed = snprintf(pcInsert, iInsertLen, "part1"); in ssi_example_ssi_handler()
141 printed = snprintf(pcInsert, iInsertLen, "part2"); in ssi_example_ssi_handler()
144 printed = snprintf(pcInsert, iInsertLen, "unhandled part: %d", (int)current_tag_part); in ssi_example_ssi_handler()
148 printed = snprintf(pcInsert, iInsertLen, "LWIP_HTTPD_SSI_MULTIPART disabled"); in ssi_example_ssi_handler()
156 printed = snprintf(pcInsert, iInsertLen, "%s", (char *)params); in ssi_example_ssi_handler()
158 printed = snprintf(pcInsert, iInsertLen, "none"); in ssi_example_ssi_handler()
161 printed = snprintf(pcInsert, iInsertLen, "NULL"); in ssi_example_ssi_handler()
/lib/rsa/
A Drsa-sign.c126 snprintf(key_id, sizeof(key_id), in rsa_engine_get_pub_key()
130 snprintf(key_id, sizeof(key_id), in rsa_engine_get_pub_key()
134 snprintf(key_id, sizeof(key_id), in rsa_engine_get_pub_key()
140 snprintf(key_id, sizeof(key_id), in rsa_engine_get_pub_key()
144 snprintf(key_id, sizeof(key_id), in rsa_engine_get_pub_key()
199 snprintf(path, sizeof(path), "%s", keyfile); in rsa_pem_get_priv_key()
257 snprintf(key_id, sizeof(key_id), in rsa_engine_get_priv_key()
261 snprintf(key_id, sizeof(key_id), in rsa_engine_get_priv_key()
265 snprintf(key_id, sizeof(key_id), in rsa_engine_get_priv_key()
271 snprintf(key_id, sizeof(key_id), in rsa_engine_get_priv_key()
[all …]
/lib/lwip/lwip/contrib/examples/httpd/post_example/
A Dpost_example.c79 snprintf(response_uri, response_uri_len, "/loginfail.html"); in httpd_post_begin()
156 snprintf(response_uri, response_uri_len, "/loginfail.html"); in httpd_post_finished()
160 snprintf(response_uri, response_uri_len, "/session.html"); in httpd_post_finished()
/lib/mbedtls/external/mbedtls/programs/psa/
A Dpsa_constant_names.c17 int snprintf(char *s, size_t n, const char *fmt, ...) in snprintf() function
59 size_t n = snprintf(*buffer, buffer_size - *required_size, format, value); in append_integer()
131 return snprintf(buffer, buffer_size, "%ld", (long) status); in psa_snprint_status()
148 return snprintf(buffer, buffer_size, "0x%02x", (unsigned) curve); in psa_snprint_ecc_curve()
165 return snprintf(buffer, buffer_size, "0x%02x", (unsigned) group); in psa_snprint_dh_group()
/lib/
A Doid_registry.c122 ret = count = snprintf(buffer, bufsize, "%u.%u", n / 40, n % 40); in sprint_oid()
143 ret += count = snprintf(buffer, bufsize, ".%lu", num); in sprint_oid()
153 snprintf(buffer, bufsize, "(bad)"); in sprint_oid()
A Dhexdump.c60 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
71 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
82 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
A Ddisplay_options.c23 len = snprintf(buf, size, "%s%s", newlines ? "\n\n" : "", in display_options_get_banner_priv()
26 len += snprintf(buf + len, size - len, ", Build: %s", in display_options_get_banner_priv()
32 snprintf(buf + len, size - len, "\n\n"); in display_options_get_banner_priv()
A Dfdtdec_test.c168 snprintf(name, sizeof(name), "%s@%x,%x", basename, upper, in make_fdt_carveout_device()
171 snprintf(name, sizeof(name), "%s@%x", basename, lower); in make_fdt_carveout_device()
256 snprintf(filename, sizeof(filename), "/tmp/fdtdec-carveout-%u-%u.dtb", in make_fdt_carveout()
/lib/efi_loader/
A Defi_fdt.c58 snprintf(fname, size, "%s/%s", prefix, fdt_fname); in efi_get_distro_fdt_name()
70 snprintf(fname, size, "%s/%s%s%s%s.dtb", prefix, in efi_get_distro_fdt_name()
A Defi_string.c41 snprintf(index_buf, sizeof(index_buf), "%04X", index); in efi_create_indexed_name()
/lib/aes/
A Daes-encrypt.c112 snprintf(name, sizeof(name), "key-%s-%s-%s", in image_aes_add_cipher_data()
115 snprintf(name, sizeof(name), "key-%s-%s", in image_aes_add_cipher_data()
/lib/fwu_updates/
A Dfwu_mtd.c118 p += snprintf(p, end - p, "mtd %s", mtd->name); in gen_image_alt_info()
147 p += snprintf(p, end - p, "%sbank%d raw %x %x", in gen_image_alt_info()
/lib/lwip/lwip/contrib/ports/win32/
A Dsio.c151 snprintf(fileName, 255, SIO_DEVICENAME"%lu", (DWORD)(devnum)); in sio_open()
153 snprintf(fileName, 255, SIO_DEVICENAME"%lu", (DWORD)(devnum & ~1)); in sio_open()
/lib/crypto/
A Dpublic_key.c88 ret = snprintf(algo, sizeof(algo), "%s,%s%d", sig->hash_algo, in public_key_verify_signature()
141 n = snprintf(alg_name, CRYPTO_MAX_ALG_NAME, in software_key_determine_akcipher()
145 n = snprintf(alg_name, CRYPTO_MAX_ALG_NAME, in software_key_determine_akcipher()
/lib/lwip/lwip/contrib/apps/shell/
A Dshell.c244 snprintf((char *)buffer, sizeof(buffer), "%d"NEWLINE, i); in com_open()
312 snprintf((char *)buffer, sizeof(buffer), "%d"NEWLINE, i); in com_lstn()
393 snprintf((char *)buffer, sizeof(buffer), "%d"NEWLINE, j); in com_acpt()
653 snprintf((char *)buffer, sizeof(buffer), "%d"NEWLINE, i); in com_udpc()
736 snprintf((char *)buffer, sizeof(buffer), "%d"NEWLINE, i); in com_udpl()
819 snprintf((char *)buffer, sizeof(buffer), "%d"NEWLINE, i); in com_udpn()
909 snprintf((char *)buffer, sizeof(buffer), "%d"NEWLINE, i); in com_udpb()
978 snprintf((char *)buffer, sizeof(buffer), "if_indextoname() failed: %d"NEWLINE, errno); in com_idxtoname()
990 snprintf((char *)buffer, sizeof(buffer), "%u"NEWLINE, idx); in com_nametoidx()
/lib/mbedtls/external/mbedtls/configs/ext/
A Dtfm_mbedcrypto_config_profile_medium.h386 #define MBEDTLS_PLATFORM_SNPRINTF_MACRO snprintf
/lib/lwip/lwip/contrib/ports/win32/include/arch/
A Dcc.h96 #define snprintf _snprintf macro
/lib/lwip/u-boot/arch/
A Dcc.h54 snprintf(buf, sizeof(buf), "(time_t)%llu", t); in sntp_format_time()
/lib/mbedtls/external/mbedtls/3rdparty/everest/include/everest/kremlin/internal/
A Dtarget.h99 # define KRML_HOST_SNPRINTF(buf, sz, fmt, arg) snprintf(buf, sz, fmt, arg)
/lib/mbedtls/external/mbedtls/tests/suites/
A Dhost_test.function261 * \brief Tests snprintf implementation with test input.
266 * potential misuse of snprintf from gcc -Wformat-truncation (observed with
273 * \param ref_ret Expected snprintf return value.
304 * \brief Tests snprintf implementation.
538 * Make sure we have a snprintf that correctly zero-terminates
541 mbedtls_fprintf(stderr, "the snprintf implementation is broken\n");
/lib/ecdsa/
A Decdsa-libcrypto.c296 snprintf(name, sizeof(name), "%s", info->keyname); in load_key_from_fdt()
339 snprintf(kname, sizeof(kname), "%s", info->keyfile); in prepare_ctx()
341 snprintf(kname, sizeof(kname), "%s/%s.pem", info->keydir, in prepare_ctx()
/lib/lwip/lwip/contrib/ports/unix/port/netif/
A Dsio.c344 snprintf( dev, sizeof(dev), "/dev/ttyS%d", devnum ); in sio_open()
432 snprintf(buf, sizeof(buf), in sio_open()
/lib/lwip/lwip/contrib/examples/tftp/
A Dtftp_example.c62 snprintf(full_filename, sizeof(full_filename), "%s%s", LWIP_TFTP_EXAMPLE_BASE_DIR, fname); in tftp_open_file()
/lib/lwip/lwip/src/apps/http/
A Dhttp_client.c495 …return snprintf(buffer, buffer_size, HTTPC_REQ_11_PROXY_PORT_FORMAT(server_name, server_port, uri,… in httpc_create_request_string()
497 … return snprintf(buffer, buffer_size, HTTPC_REQ_11_PROXY_FORMAT(server_name, uri, server_name)); in httpc_create_request_string()
501 return snprintf(buffer, buffer_size, HTTPC_REQ_11_HOST_FORMAT(uri, server_name)); in httpc_create_request_string()
503 return snprintf(buffer, buffer_size, HTTPC_REQ_11_FORMAT(uri)); in httpc_create_request_string()
/lib/acpi/
A Dacpigen.c357 snprintf(pscope, sizeof(pscope), ACPI_CPU_STRING, cpuindex); in acpigen_write_processor()
368 snprintf(pscope, sizeof(pscope), ACPI_CPU_STRING, cpuindex); in acpigen_write_processor_device()
386 snprintf(pscope, sizeof(pscope), ACPI_CPU_STRING, i); in acpigen_write_processor_package()
400 snprintf(buffer, sizeof(buffer), ACPI_CPU_STRING, core_id); in acpigen_write_processor_cnot()

Completed in 67 milliseconds

123