Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/mtrace Don't print trailing spaces if there are no ...
details: https://anonhg.NetBSD.org/src/rev/d4a91e10400f
branches: trunk
changeset: 473172:d4a91e10400f
user: he <he%NetBSD.org@localhost>
date: Sun May 23 16:15:18 1999 +0000
description:
Don't print trailing spaces if there are no flag value to print.
diffstat:
usr.sbin/mtrace/mtrace.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (39 lines):
diff -r 2e1939eb38f5 -r d4a91e10400f usr.sbin/mtrace/mtrace.c
--- a/usr.sbin/mtrace/mtrace.c Sun May 23 16:07:04 1999 +0000
+++ b/usr.sbin/mtrace/mtrace.c Sun May 23 16:15:18 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mtrace.c,v 1.12 1999/01/14 21:54:11 he Exp $ */
+/* $NetBSD: mtrace.c,v 1.13 1999/05/23 16:15:18 he Exp $ */
/*
* mtrace.c
@@ -52,7 +52,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: mtrace.c,v 1.12 1999/01/14 21:54:11 he Exp $");
+__RCSID("$NetBSD: mtrace.c,v 1.13 1999/05/23 16:15:18 he Exp $");
#endif
#include <sys/types.h>
@@ -793,7 +793,7 @@
char *name;
int i;
int hop;
- char *ms;
+ char *ms, *ft;
i = abs(index);
r = buf->resps + i - 1;
@@ -807,7 +807,10 @@
ms = scale(&hop);
printf(" %d%s", hop, ms);
}
- printf(" %s\n", flag_type(r->tr_rflags));
+ ft = flag_type(r->tr_rflags);
+ if (strlen(ft) != 0)
+ printf(" %s", ft);
+ printf("\n");
memcpy(names[i-1], name, sizeof(names[0]) - 1);
names[i-1][sizeof(names[0])-1] = '\0';
}
Home |
Main Index |
Thread Index |
Old Index