/Zephyr-latest/tests/lib/sprintf/src/ |
D | main.c | 103 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/ |
D | README.txt | 1 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 ....
|
D | CMakeLists.txt | 5 project(sprintf) project
|
/Zephyr-latest/samples/boards/96boards/argonkey/sensors/src/ |
D | main.c | 57 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/ |
D | main.c | 144 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/ |
D | main.c | 67 sprintf(row, "T:%.2f%cC", in main() 71 sprintf(row, "T:%d%cC", temp.val1, in main()
|
/Zephyr-latest/samples/sensor/th02/src/ |
D | main.c | 75 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/ |
D | log_fs_test.c | 78 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/ |
D | test_common_dir.c | 27 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/ |
D | main.c | 33 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/ |
D | edtt_driver_bsim.c | 193 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/ |
D | stdio.h | 40 int __printf_like(2, 3) sprintf(char *ZRESTRICT str,
|
/Zephyr-latest/samples/arch/smp/pi/src/ |
D | main.c | 73 sprintf(buffer, "%.4d", value); in test_thread()
|
/Zephyr-latest/lib/libc/minimal/source/stdout/ |
D | sprintf.c | 52 int sprintf(char *ZRESTRICT str, const char *ZRESTRICT format, ...) in sprintf() function
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/os_mgmt_datetime/src/ |
D | smp_test_util.c | 71 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/ |
D | CMakeLists.txt | 31 source/stdout/sprintf.c
|
/Zephyr-latest/boards/native/native_posix/ |
D | timer_model.c | 58 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/ |
D | test_fat_dir.c | 133 sprintf(file_path, "%s/%s", TEST_DIR, entry.name); in test_rmdir()
|
/Zephyr-latest/scripts/native_simulator/native/src/ |
D | timer_model.c | 53 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/ |
D | log_output_test.c | 250 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/ |
D | main.c | 149 sprintf(count_str, "%d", count/100U); in main()
|
/Zephyr-latest/arch/x86/zefi/ |
D | printf.h | 159 static inline int sprintf(char *buf, const char *f, ...) in sprintf() function
|
/Zephyr-latest/tests/subsys/fs/fat_fs_dual_drive/src/ |
D | test_fat_dir.c | 138 sprintf(file_path, "%s/%s", dir, entry.name); in test_rmdir()
|
/Zephyr-latest/tests/kernel/mem_protect/syscalls/src/ |
D | main.c | 453 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/ |
D | dynamic_cmd.c | 65 sprintf(dynamic_cmd_buffer[dynamic_cmd_cnt++], "%s", argv[1]); in cmd_dynamic_add()
|