Home
last modified time | relevance | path

Searched refs:sprintf (Results 1 – 25 of 57) sorted by relevance

123

/Zephyr-latest/tests/lib/sprintf/src/
Dmain.c103 ZTEST(sprintf, test_sprintf_double) in ZTEST() argument
123 sprintf(buffer, "%e", var.d); in ZTEST()
127 sprintf(buffer, "%E", var.d); in ZTEST()
131 sprintf(buffer, "%f", var.d); in ZTEST()
135 sprintf(buffer, "%F", var.d); in ZTEST()
139 sprintf(buffer, "%g", var.d); in ZTEST()
143 sprintf(buffer, "%G", var.d); in ZTEST()
149 sprintf(buffer, "%e", var.d); in ZTEST()
153 sprintf(buffer, "%E", var.d); in ZTEST()
157 sprintf(buffer, "%f", var.d); in ZTEST()
[all …]
/Zephyr-latest/tests/lib/sprintf/
DREADME.txt1 Title: sprintf() APIs
5 This test verifies that sprintf() and its variants operate as expected.
32 tc_start() - Test sprintf APIs
35 Testing sprintf() with integers ....
39 Testing sprintf() with strings ....
40 Testing sprintf() with misc options ....
41 Testing sprintf() with doubles ....
DCMakeLists.txt5 project(sprintf) project
/Zephyr-latest/samples/boards/96boards/argonkey/sensors/src/
Dmain.c57 sprintf(out_str, "accel (%f %f %f) m/s2", (double)out_ev(&accel_x), in lsm6dsl_trigger_handler()
69 sprintf(out_str, "gyro (%f %f %f) dps", (double)out_ev(&gyro_x), in lsm6dsl_trigger_handler()
82 sprintf(out_str, "magn (%f %f %f) gauss", (double)out_ev(&magn_x), in lsm6dsl_trigger_handler()
98 sprintf(out_str, "press (%f) kPa - temp (%f) deg", (double)out_ev(&press), in lsm6dsl_trigger_handler()
313 sprintf(out_str, "accel (%f %f %f) m/s2", (double)out_ev(&accel_x), in main()
323 sprintf(out_str, "gyro (%f %f %f) dps", (double)out_ev(&gyro_x), in main()
333 sprintf(out_str, "magn (%f %f %f) gauss", (double)out_ev(&magn_x), in main()
346 sprintf(out_str, "press (%f) kPa - temp (%f) deg", in main()
/Zephyr-latest/samples/sensor/lsm6dsl/src/
Dmain.c144 sprintf(out_str, "accel x:%f ms/2 y:%f ms/2 z:%f ms/2", in main()
151 sprintf(out_str, "gyro x:%f dps y:%f dps z:%f dps", in main()
159 sprintf(out_str, "magn x:%f gauss y:%f gauss z:%f gauss", in main()
168 sprintf(out_str, "press: %f kPa - temp: %f deg", in main()
/Zephyr-latest/samples/sensor/grove_temperature/src/
Dmain.c67 sprintf(row, "T:%.2f%cC", in main()
71 sprintf(row, "T:%d%cC", temp.val1, in main()
/Zephyr-latest/samples/sensor/th02/src/
Dmain.c75 sprintf(row, "T:%.1f%cC", sensor_value_to_double(val), in main()
81 sprintf(row, "RH:%.0f%c", sensor_value_to_double(val + 1), in main()
/Zephyr-latest/tests/subsys/logging/log_backend_fs/src/
Dlog_fs_test.c78 sprintf(fname, "%s/%s", CONFIG_LOG_BACKEND_FS_DIR, in ZTEST()
101 sprintf(fname, "%s/%s0000", CONFIG_LOG_BACKEND_FS_DIR, log_prefix); in ZTEST()
144 sprintf(fname, "%s/%s0000", CONFIG_LOG_BACKEND_FS_DIR, log_prefix); in ZTEST()
164 sprintf(fname, "%s/%s0001", CONFIG_LOG_BACKEND_FS_DIR, log_prefix); in ZTEST()
/Zephyr-latest/tests/subsys/fs/multi-fs/src/
Dtest_common_dir.c27 res = sprintf(file_path, "%s/%s", dir_path, file); in test_mkdir()
143 sprintf(file_path, "%s/%s", dir_path, entry.name); in test_rmdir()
/Zephyr-latest/tests/boards/native_sim/rtc/src/
Dmain.c33 sprintf(dest, "%02u:%02u:%02u.%06u", hour, minute, second, us); in us_time_to_str()
35 sprintf(dest, " NEVER/UNKNOWN "); in us_time_to_str()
/Zephyr-latest/tests/bsim/bluetooth/ll/edtt/common/
Dedtt_driver_bsim.c193 sprintf(fifo_path[TO_DEVICE], "%s/Device%i.PTTin", pb_com_path, device_nbr); in edptd_create_fifo_if()
194 sprintf(fifo_path[TO_EDTT], "%s/Device%i.PTTout", pb_com_path, device_nbr); in edptd_create_fifo_if()
/Zephyr-latest/lib/libc/minimal/include/
Dstdio.h40 int __printf_like(2, 3) sprintf(char *ZRESTRICT str,
/Zephyr-latest/samples/arch/smp/pi/src/
Dmain.c73 sprintf(buffer, "%.4d", value); in test_thread()
/Zephyr-latest/lib/libc/minimal/source/stdout/
Dsprintf.c52 int sprintf(char *ZRESTRICT str, const char *ZRESTRICT format, ...) in sprintf() function
/Zephyr-latest/tests/subsys/mgmt/mcumgr/os_mgmt_datetime/src/
Dsmp_test_util.c71 sprintf(tmp_str, "%4d-%02d-%02dT%02d:%02d:%02d", (uint16_t)a_time->tm_year, in create_mcumgr_datetime_set_packet()
/Zephyr-latest/lib/libc/minimal/
DCMakeLists.txt31 source/stdout/sprintf.c
/Zephyr-latest/boards/native/native_posix/
Dtimer_model.c58 sprintf(dest, "%02u:%02u:%02u.%06u", hour, minute, second, us); in us_time_to_str()
60 sprintf(dest, " NEVER/UNKNOWN "); in us_time_to_str()
/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/
Dtest_fat_dir.c133 sprintf(file_path, "%s/%s", TEST_DIR, entry.name); in test_rmdir()
/Zephyr-latest/scripts/native_simulator/native/src/
Dtimer_model.c53 sprintf(dest, "%02u:%02u:%02u.%06u", hour, minute, second, us); in us_time_to_str()
55 sprintf(dest, " NEVER/UNKNOWN "); in us_time_to_str()
/Zephyr-latest/tests/subsys/logging/log_output/src/
Dlog_output_test.c250 sprintf(exp_str, "<err> [%s] src: Test\r\n", k_thread_name_get(k_current_get())); in ZTEST()
252 sprintf(exp_str, "<err> [%p] src: Test\r\n", k_current_get()); in ZTEST()
/Zephyr-latest/samples/subsys/display/lvgl/src/
Dmain.c149 sprintf(count_str, "%d", count/100U); in main()
/Zephyr-latest/arch/x86/zefi/
Dprintf.h159 static inline int sprintf(char *buf, const char *f, ...) in sprintf() function
/Zephyr-latest/tests/subsys/fs/fat_fs_dual_drive/src/
Dtest_fat_dir.c138 sprintf(file_path, "%s/%s", dir, entry.name); in test_rmdir()
/Zephyr-latest/tests/kernel/mem_protect/syscalls/src/
Dmain.c453 sprintf(kernel_string, "this is a kernel string"); in syscalls_setup()
454 sprintf(user_string, "this is a user string"); in syscalls_setup()
/Zephyr-latest/samples/subsys/shell/shell_module/src/
Ddynamic_cmd.c65 sprintf(dynamic_cmd_buffer[dynamic_cmd_cnt++], "%s", argv[1]); in cmd_dynamic_add()

123