diff options
| author | Meco Man <[email protected]> | 2023-11-09 07:52:18 -0500 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2023-11-10 05:24:33 -0500 |
| commit | 589641258e3eb21ba7b5d6ce7f7da581468f5489 (patch) | |
| tree | 0efcfb5fec25d0d2e7b543c3aa7d542abacad1ff /libcpu | |
| parent | 48f53e9150a96ca27e3b33264c36c4431caf8af9 (diff) | |
[debug] rename RT_DEBUGING_INIT as RT_DEBUGING_AUTO_INIT
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/sim/win32/startup.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libcpu/sim/win32/startup.c b/libcpu/sim/win32/startup.c index ba2871eae6..f0f2784a7a 100644 --- a/libcpu/sim/win32/startup.c +++ b/libcpu/sim/win32/startup.c @@ -81,7 +81,7 @@ struct rt_init_tag { const char *level; init_fn_t fn; -#ifdef RT_DEBUGING_INIT +#ifdef RT_DEBUGING_AUTO_INIT const char *fn_name; #endif }; @@ -114,7 +114,7 @@ static int rt_init_objects_sort(void) { table->level = ((struct rt_init_desc *)ptr_begin)->level; table->fn = ((struct rt_init_desc *)ptr_begin)->fn; -#ifdef RT_DEBUGING_INIT +#ifdef RT_DEBUGING_AUTO_INIT table->fn_name = ((struct rt_init_desc *)ptr_begin)->fn_name; #endif ptr_begin += sizeof(struct rt_init_desc) / sizeof(unsigned int); @@ -168,13 +168,13 @@ void rt_components_board_init(void) { break; } -#ifdef RT_DEBUGING_INIT +#ifdef RT_DEBUGING_AUTO_INIT rt_kprintf("initialize %s", rt_init_table[index_i].fn_name); result = rt_init_table[index_i].fn(); rt_kprintf(":%d done\n", result); #else result = rt_init_table[index_i].fn(); -#endif +#endif /* RT_DEBUGING_AUTO_INIT */ } } } @@ -203,7 +203,7 @@ void rt_components_init(void) { break; } -#ifdef RT_DEBUGING_INIT +#ifdef RT_DEBUGING_AUTO_INIT rt_kprintf("initialize %s", rt_init_table[index_i].fn_name); result = rt_init_table[index_i].fn(); rt_kprintf(":%d done\n", result); |
