From d8ba8dbcc3535c67eeb1b75b89fc4b270bfb89b9 Mon Sep 17 00:00:00 2001 From: Marin Ramesa Date: Tue, 10 Dec 2013 19:19:58 +0100 Subject: i386/i386/db_trace.c (db_i386_stack_trace): remove unnecessary cast Argument to INKERNEL() is already cast to vm_offset_t in the macro itself. * i386/i386/db_trace.c (db_i386_stack_trace) (INKERNEL) (callpc): Don't cast to unsigned long. (db_i386_stack_trace) (INKERNEL) (frame): Likewise. --- i386/i386/db_trace.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/i386/i386/db_trace.c b/i386/i386/db_trace.c index b9c46a6..6247d4f 100644 --- a/i386/i386/db_trace.c +++ b/i386/i386/db_trace.c @@ -425,7 +425,7 @@ db_i386_stack_trace( if (!db_trace_symbols_found) db_find_trace_symbols(); - if (!INKERNEL((unsigned long)callpc) && !INKERNEL((unsigned long)frame)) { + if (!INKERNEL(callpc) && !INKERNEL(frame)) { db_printf(">>>>> user space <<<<<\n"); user_frame++; } @@ -436,7 +436,7 @@ db_i386_stack_trace( char * name; db_expr_t offset; - if (INKERNEL((unsigned long)callpc) && user_frame == 0) { + if (INKERNEL(callpc) && user_frame == 0) { db_addr_t call_func = 0; db_sym_t sym_tmp; @@ -461,7 +461,7 @@ db_i386_stack_trace( frame_type = 0; narg = db_numargs(frame, task); } - } else if (INKERNEL((unsigned long)callpc) ^ INKERNEL((unsigned long)frame)) { + } else if (INKERNEL(callpc) ^ INKERNEL(frame)) { frame_type = 0; narg = -1; } else { @@ -506,7 +506,7 @@ db_i386_stack_trace( break; } if (!INKERNEL(lastframe) || - (!INKERNEL((unsigned long)callpc) && !INKERNEL((unsigned long)frame))) + (!INKERNEL(callpc) && !INKERNEL(frame))) user_frame++; if (user_frame == 1) { db_printf(">>>>> user space <<<<<\n"); -- cgit v1.2.3