aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorMike Frysinger <vapier.adi@gmail.com>2008-10-09 03:19:50 -0400
committerBryan Wu <cooloney@kernel.org>2008-10-09 03:19:50 -0400
commitd3ab3a62f57f3aaeed5a7e2ef136937ffd16448a (patch)
tree62cbf62cd5a16b864a9b027f0ccc6c85d1e0fbb9 /arch/blackfin
parentdabaad5b90dec6909c984d95330f6f41c325f9a8 (diff)
Blackfin arch: ptrace - cleanup debug messages and style
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin')
-rw-r--r--arch/blackfin/kernel/ptrace.c30
1 files changed, 12 insertions, 18 deletions
diff --git a/arch/blackfin/kernel/ptrace.c b/arch/blackfin/kernel/ptrace.c
index 9ce80d05e2c9..b3f4ac792cf1 100644
--- a/arch/blackfin/kernel/ptrace.c
+++ b/arch/blackfin/kernel/ptrace.c
@@ -280,7 +280,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
280 280
281 /* when I and D space are separate, this will have to be fixed. */ 281 /* when I and D space are separate, this will have to be fixed. */
282 case PTRACE_POKEDATA: 282 case PTRACE_POKEDATA:
283 printk(KERN_NOTICE "ptrace: PTRACE_PEEKDATA\n"); 283 pr_debug("ptrace: PTRACE_PEEKDATA\n");
284 /* fall through */ 284 /* fall through */
285 case PTRACE_POKETEXT: /* write the word at location addr. */ 285 case PTRACE_POKETEXT: /* write the word at location addr. */
286 { 286 {
@@ -351,7 +351,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
351 { /* restart after signal. */ 351 { /* restart after signal. */
352 long tmp; 352 long tmp;
353 353
354 pr_debug("ptrace_cont\n"); 354 pr_debug("ptrace: syscall/cont\n");
355 355
356 ret = -EIO; 356 ret = -EIO;
357 if (!valid_signal(data)) 357 if (!valid_signal(data))
@@ -365,7 +365,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
365 /* make sure the single step bit is not set. */ 365 /* make sure the single step bit is not set. */
366 tmp = get_reg(child, PT_SYSCFG) & ~(TRACE_BITS); 366 tmp = get_reg(child, PT_SYSCFG) & ~(TRACE_BITS);
367 put_reg(child, PT_SYSCFG, tmp); 367 put_reg(child, PT_SYSCFG, tmp);
368 pr_debug("before wake_up_process\n"); 368 pr_debug("ptrace: before wake_up_process\n");
369 wake_up_process(child); 369 wake_up_process(child);
370 ret = 0; 370 ret = 0;
371 break; 371 break;
@@ -394,7 +394,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
394 { /* set the trap flag. */ 394 { /* set the trap flag. */
395 long tmp; 395 long tmp;
396 396
397 pr_debug("single step\n"); 397 pr_debug("ptrace: single step\n");
398 ret = -EIO; 398 ret = -EIO;
399 if (!valid_signal(data)) 399 if (!valid_signal(data))
400 break; 400 break;
@@ -411,21 +411,16 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
411 } 411 }
412 412
413 case PTRACE_GETREGS: 413 case PTRACE_GETREGS:
414 { 414 /* Get all gp regs from the child. */
415 415 ret = ptrace_getregs(child, datap);
416 /* Get all gp regs from the child. */ 416 break;
417 ret = ptrace_getregs(child, datap);
418 break;
419 }
420 417
421 case PTRACE_SETREGS: 418 case PTRACE_SETREGS:
422 { 419 printk(KERN_WARNING "ptrace: SETREGS: **** NOT IMPLEMENTED ***\n");
423 printk(KERN_NOTICE 420 /* Set all gp regs in the child. */
424 "ptrace: SETREGS: **** NOT IMPLEMENTED ***\n"); 421 ret = 0;
425 /* Set all gp regs in the child. */ 422 break;
426 ret = 0; 423
427 break;
428 }
429 default: 424 default:
430 ret = ptrace_request(child, request, addr, data); 425 ret = ptrace_request(child, request, addr, data);
431 break; 426 break;
@@ -436,7 +431,6 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
436 431
437asmlinkage void syscall_trace(void) 432asmlinkage void syscall_trace(void)
438{ 433{
439
440 if (!test_thread_flag(TIF_SYSCALL_TRACE)) 434 if (!test_thread_flag(TIF_SYSCALL_TRACE))
441 return; 435 return;
442 436