* @brief Print environment variables of light-weight process * * @param[in] lwp Pointer to the light-weight process structure * * @return void */
| 871 | * @return void |
| 872 | */ |
| 873 | void lwp_print_envp(struct rt_lwp *lwp) |
| 874 | { |
| 875 | rt_size_t envp_counts; |
| 876 | char **kenvp_array = lwp_get_envp(lwp, &envp_counts); |
| 877 | if (kenvp_array) |
| 878 | { |
| 879 | rt_kprintf("envp_counts: %d\n", envp_counts); |
| 880 | for (size_t i = 0; i < envp_counts; i++) |
| 881 | { |
| 882 | rt_kprintf("envp[%d]: %s\n", i, kenvp_array[i]); |
| 883 | } |
| 884 | } |
| 885 | lwp_free_command_line_args(kenvp_array); |
| 886 | return ; |
| 887 | } |
| 888 | |
| 889 | /** |
| 890 | * @brief Get environment variables of light-weight process |
nothing calls this directly
no test coverage detected