Changeset 670 for trunk/kernel/syscalls/sys_fbf.c
- Timestamp:
- Nov 19, 2020, 11:45:52 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_fbf.c
r657 r670 54 54 #if DEBUG_SYS_FBF 55 55 if( DEBUG_SYS_FBF < tm_start ) 56 printk("\n[%s] thread[%x,%x] enter for %s / arg1 %x / arg2 %x / arg3 %x / cycle %d\n",56 printk("\n[%s] thread[%x,%x] %s / a1 %x / a2 %x / a3 %x / cycle %d\n", 57 57 __FUNCTION__, process->pid, this->trdid, dev_fbf_cmd_str( operation ), 58 58 arg1, arg2, arg3, (uint32_t)tm_start ); … … 203 203 } 204 204 /////////////////////// 205 case FBF_ACTIVE_WINDOW: 206 { 207 uint32_t wid = arg1; 208 uint32_t active = arg2; 209 210 // call relevant kernel function 211 error = dev_fbf_active_window( wid , active ); 212 213 if( error ) 214 { 215 216 #if DEBUG_SYSCALLS_ERROR 217 printk("\n[ERROR] in %s : cannot %s / thread[%x,%x]\n", 218 __FUNCTION__ , dev_fbf_cmd_str(operation), process->pid, this->trdid ); 219 #endif 220 this->errno = EINVAL; 221 } 222 break; 223 } 224 /////////////////////// 205 225 case FBF_DELETE_WINDOW: 206 226 { … … 214 234 215 235 #if DEBUG_SYSCALLS_ERROR 216 printk("\n[ERROR] in %s : cannot delete window for%s / thread[%x,%x]\n",236 printk("\n[ERROR] in %s : cannot %s / thread[%x,%x]\n", 217 237 __FUNCTION__ , dev_fbf_cmd_str(operation), process->pid, this->trdid ); 218 238 #endif … … 237 257 238 258 #if DEBUG_SYSCALLS_ERROR 239 printk("\n[ERROR] in %s : cannot refresh window for%s / thread[%x,%x]\n",259 printk("\n[ERROR] in %s : cannot %s / thread[%x,%x]\n", 240 260 __FUNCTION__ , dev_fbf_cmd_str(operation), process->pid, this->trdid ); 241 261 #endif … … 258 278 259 279 #if DEBUG_SYSCALLS_ERROR 260 printk("\n[ERROR] in %s : cannot move window/ thread[%x,%x]\n",280 printk("\n[ERROR] in %s : cannot %s / thread[%x,%x]\n", 261 281 __FUNCTION__ , dev_fbf_cmd_str(operation), process->pid, this->trdid ); 262 282 #endif … … 279 299 280 300 #if DEBUG_SYSCALLS_ERROR 281 printk("\n[ERROR] in %s : cannot move window / thread[%x,%x]\n", 301 printk("\n[ERROR] in %s : cannot %s / thread[%x,%x]\n", 302 __FUNCTION__ , dev_fbf_cmd_str(operation), process->pid, this->trdid ); 303 #endif 304 this->errno = EINVAL; 305 } 306 break; 307 } 308 ////////////////////// 309 case FBF_FRONT_WINDOW: 310 { 311 uint32_t wid = arg1; 312 313 // call relevant kernel function 314 error = dev_fbf_front_window( wid ); 315 316 if( error ) 317 { 318 319 #if DEBUG_SYSCALLS_ERROR 320 printk("\n[ERROR] in %s : cannot %s / thread[%x,%x]\n", 282 321 __FUNCTION__ , dev_fbf_cmd_str(operation), process->pid, this->trdid ); 283 322 #endif
Note: See TracChangeset
for help on using the changeset viewer.