Changeset 226 for soft/giet_vm/sys/drivers.c
- Timestamp:
- Dec 14, 2012, 10:10:12 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/sys/drivers.c
r225 r226 232 232 // _tty_error() 233 233 //////////////////////////////////////////////////////////////////////////////// 234 void _tty_error( unsigned int t ask_id )234 void _tty_error( unsigned int tty_id, unsigned int task_id ) 235 235 { 236 236 unsigned int proc_id = _procid(); 237 237 238 238 _get_lock(&_tty_put_lock); 239 _puts("\n[GIET ERROR] TTY index too large for task "); 239 if( tty_id == 0xFFFFFFFF ) 240 _puts("\n[GIET ERROR] no TTY assigned to the task "); 241 else 242 _puts("\n[GIET ERROR] TTY index too large for task "); 240 243 _putd( task_id ); 241 244 _puts(" on processor "); … … 263 266 if ( tty_id >= NB_TTYS ) 264 267 { 265 _tty_error( t ask_id );268 _tty_error( tty_id , task_id ); 266 269 return 0; 267 270 } … … 299 302 if ( tty_id >= NB_TTYS ) 300 303 { 301 _tty_error( t ask_id );304 _tty_error( tty_id, task_id ); 302 305 return 0; 303 306 }
Note: See TracChangeset
for help on using the changeset viewer.