Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/tprof Output alignement - give lwp 6 characters



details:   https://anonhg.NetBSD.org/src/rev/b3fcbeac002a
branches:  trunk
changeset: 989489:b3fcbeac002a
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Oct 14 09:52:40 2021 +0000

description:
Output alignement - give lwp 6 characters

diffstat:

 usr.sbin/tprof/tprof_analyze.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (38 lines):

diff -r 2a1eb0352e32 -r b3fcbeac002a usr.sbin/tprof/tprof_analyze.c
--- a/usr.sbin/tprof/tprof_analyze.c    Thu Oct 14 02:22:25 2021 +0000
+++ b/usr.sbin/tprof/tprof_analyze.c    Thu Oct 14 09:52:40 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tprof_analyze.c,v 1.4 2021/01/30 11:46:25 jmcneill Exp $       */
+/*     $NetBSD: tprof_analyze.c,v 1.5 2021/10/14 09:52:40 skrll Exp $  */
 
 /*
  * Copyright (c) 2010,2011,2012 YAMAMOTO Takashi,
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: tprof_analyze.c,v 1.4 2021/01/30 11:46:25 jmcneill Exp $");
+__RCSID("$NetBSD: tprof_analyze.c,v 1.5 2021/10/14 09:52:40 skrll Exp $");
 #endif /* not lint */
 
 #include <assert.h>
@@ -423,8 +423,8 @@
         */
        printf("File: %s\n", argv[0]);
        printf("Number of samples: %zu\n\n", nsamples);
-       printf("percentage   nsamples pid    lwp  cpu  k address          symbol\n");
-       printf("------------ -------- ------ ---- ---- - ---------------- ------\n");
+       printf("percentage   nsamples pid    lwp    cpu  k address          symbol\n");
+       printf("------------ -------- ------ ------ ---- - ---------------- ------\n");
        for (i = 0; i < naddrs; i++) {
                const char *name;
                char buf[100];
@@ -448,7 +448,7 @@
 
                perc = ((float)a->nsamples / (float)nsamples) * 100.0;
 
-               printf("%11f%% %8u %6" PRIu32 " %4" PRIu32 " %4" PRIu32 " %u %016"
+               printf("%11f%% %8u %6" PRIu32 " %6" PRIu32 " %4" PRIu32 " %u %016"
                    PRIx64 " %s\n",
                    perc,
                    a->nsamples, a->pid, a->lwpid, a->cpuid, a->in_kernel,



Home | Main Index | Thread Index | Old Index