Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc64/sparc64 sparc64/db_trace.c: Nix trailing wh...



details:   https://anonhg.NetBSD.org/src/rev/30c8ffca271b
branches:  trunk
changeset: 373225:30c8ffca271b
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Jan 24 23:23:12 2023 +0000

description:
sparc64/db_trace.c: Nix trailing whitespace.

No functional change intended.

diffstat:

 sys/arch/sparc64/sparc64/db_trace.c |  38 ++++++++++++++++++------------------
 1 files changed, 19 insertions(+), 19 deletions(-)

diffs (136 lines):

diff -r 5e616b644ac9 -r 30c8ffca271b sys/arch/sparc64/sparc64/db_trace.c
--- a/sys/arch/sparc64/sparc64/db_trace.c       Tue Jan 24 18:49:29 2023 +0000
+++ b/sys/arch/sparc64/sparc64/db_trace.c       Tue Jan 24 23:23:12 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_trace.c,v 1.55 2020/05/31 11:28:52 martin Exp $ */
+/*     $NetBSD: db_trace.c,v 1.56 2023/01/24 23:23:12 riastradh Exp $ */
 
 /*
  * Copyright (c) 1996-2002 Eduardo Horvath.  All rights reserved.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.55 2020/05/31 11:28:52 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.56 2023/01/24 23:23:12 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -57,7 +57,7 @@
 #endif
 
 #ifdef _KERNEL
-#define        KLOAD(x)        probeget((paddr_t)(u_long)&(x), ASI_PRIMARY, sizeof(x)) 
+#define        KLOAD(x)        probeget((paddr_t)(u_long)&(x), ASI_PRIMARY, sizeof(x))
 #else
 static long
 kload(db_addr_t addr)
@@ -153,12 +153,12 @@
                if (frame & 1) {
                        f64 = (struct frame64 *)(frame + BIAS);
                        pc = (db_addr_t)KLOAD(f64->fr_pc);
-               
+
                        frame = KLOAD(f64->fr_fp);
                } else {
                        f32 = (struct frame32 *)(frame);
                        pc = (db_addr_t)KLOAD(f32->fr_pc);
-               
+
                        frame = (long)KLOAD(f32->fr_fp);
                }
 
@@ -175,13 +175,13 @@
                if (!INKERNEL(frame))
                        break;
 #endif
-               
+
                db_find_sym_and_offset(pc, &name, &offset);
                if (name == NULL)
                        name = "?";
-               
+
                (*pr)("%s(", name);
-               
+
                /*
                 * Print %i0..%i5; hope these still reflect the
                 * actual arguments somewhat...
@@ -216,7 +216,7 @@
 
        /* Traverse window stack */
        for (i=0; i<addr && frame; i++) {
-               if (frame & 1) 
+               if (frame & 1)
                        frame = (uint64_t)((struct frame64 *)(u_long)(frame + BIAS))->fr_fp;
                else frame = (uint64_t)((struct frame32 *)(u_long)frame)->fr_fp;
        }
@@ -226,13 +226,13 @@
 }
 #endif
 
-void 
+void
 db_print_window(uint64_t frame)
 {
        if (frame & 1) {
                struct frame64* f = (struct frame64*)(u_long)(frame + BIAS);
 
-               db_printf("frame64 %p locals, ins:\n", f);              
+               db_printf("frame64 %p locals, ins:\n", f);
                if (INKERNEL(f)) {
                        db_printf("%llx %llx %llx %llx ",
                                  (unsigned long long)f->fr_local[0],
@@ -245,12 +245,12 @@
                                  (unsigned long long)f->fr_local[6],
                                  (unsigned long long)f->fr_local[7]);
                        db_printf("%llx %llx %llx %llx ",
-                                 (unsigned long long)f->fr_arg[0],     
+                                 (unsigned long long)f->fr_arg[0],
                                  (unsigned long long)f->fr_arg[1],
                                  (unsigned long long)f->fr_arg[2],
                                  (unsigned long long)f->fr_arg[3]);
                        db_printf("%llx %llx %llx=sp %llx=pc:",
-                                 (unsigned long long)f->fr_arg[4],     
+                                 (unsigned long long)f->fr_arg[4],
                                  (unsigned long long)f->fr_arg[5],
                                  (unsigned long long)f->fr_fp,
                                  (unsigned long long)f->fr_pc);
@@ -276,7 +276,7 @@
                                  (unsigned long long)f->fr_arg[5],
                                  (unsigned long long)f->fr_fp,
                                  (unsigned long long)f->fr_pc);
-                       db_printf("\n");         
+                       db_printf("\n");
                }
        } else {
                struct frame32* f = (struct frame32*)(u_long)frame;
@@ -297,14 +297,14 @@
                        if (copyin(f, &fr, sizeof(fr))) return;
                        f = &fr;
                        db_printf("%8x %8x %8x %8x %8x %8x %8x %8x\n",
-                                 f->fr_local[0], f->fr_local[1], 
+                                 f->fr_local[0], f->fr_local[1],
                                  f->fr_local[2], f->fr_local[3],
-                                 f->fr_local[4], f->fr_local[5], 
+                                 f->fr_local[4], f->fr_local[5],
                                  f->fr_local[6], f->fr_local[7]);
                        db_printf("%8x %8x %8x %8x %8x %8x %8x=sp %8x=pc\n",
-                                 f->fr_arg[0], f->fr_arg[1], 
+                                 f->fr_arg[0], f->fr_arg[1],
                                  f->fr_arg[2], f->fr_arg[3],
-                                 f->fr_arg[4], f->fr_arg[5], 
+                                 f->fr_arg[4], f->fr_arg[5],
                                  f->fr_fp, f->fr_pc);
                }
        }
@@ -391,7 +391,7 @@
                  tf, (unsigned long long)tf->tf_tstate,
                  (unsigned long long)tf->tf_pc,
                  (unsigned long long)tf->tf_npc);
-       db_printf("y: %x\tpil: %d\toldpil: %d\tfault: %llx\ttt: %x\tGlobals:\n", 
+       db_printf("y: %x\tpil: %d\toldpil: %d\tfault: %llx\ttt: %x\tGlobals:\n",
                  (int)tf->tf_y, (int)tf->tf_pil, (int)tf->tf_oldpil,
                  (unsigned long long)tf->tf_fault, (int)tf->tf_tt);
        db_printf("%016llx %016llx %016llx %016llx\n",



Home | Main Index | Thread Index | Old Index