Changeset 619 for trunk/kernel/syscalls/sys_display.c
- Timestamp:
- Feb 12, 2019, 1:15:47 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_display.c
r614 r619 77 77 tm_start = hal_get_cycles(); 78 78 if( DEBUG_SYS_DISPLAY < tm_start ) 79 printk("\n[ DBG] %s :thread[%x,%x] enter / type %s / cycle = %d\n",79 printk("\n[%s] thread[%x,%x] enter / type %s / cycle = %d\n", 80 80 __FUNCTION__, process->pid, this->trdid, display_type_str(type), (uint32_t)tm_start ); 81 81 #endif … … 84 84 if( type == DISPLAY_STRING ) 85 85 { 86 char kbuf[ 256];86 char kbuf[512]; 87 87 uint32_t length; 88 88 … … 106 106 length = hal_strlen_from_uspace( string ); 107 107 108 if( length >= 256)108 if( length >= 512 ) 109 109 { 110 110 … … 118 118 119 119 // copy string to kernel space 120 hal_strcpy_from_uspace( kbuf , string , 256);120 hal_strcpy_from_uspace( kbuf , string , 512 ); 121 121 122 122 // print message on TXT0 kernel terminal … … 281 281 } 282 282 283 thread_display_busylocks( thread_xp );283 thread_display_busylocks( thread_xp , __FUNCTION__ ); 284 284 } 285 285 ///////////////////////////////// … … 388 388 #if DEBUG_SYS_DISPLAY 389 389 if( DEBUG_SYS_DISPLAY < tm_end ) 390 printk("\n[ DBG] %s :thread[%x,%x] exit / cycle %d\n",390 printk("\n[%s] thread[%x,%x] exit / cycle %d\n", 391 391 __FUNCTION__, process->pid, this->trdid, (uint32_t)tm_end ); 392 392 #endif
Note: See TracChangeset
for help on using the changeset viewer.