diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-11-03 12:53:39 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-11-03 12:53:39 +0000 |
commit | a8e06cffdd20a83882a72b9e059548967aa990db (patch) | |
tree | e38b46d36864b631a28cea8ebd64208aabc551e3 /usr.bin | |
parent | 4f4cb2b2ad43bc37dbc11566931f4abc773bf62f (diff) |
Fix formatting in the case where a symbol table isn't present.
From Mark Johnston, markj@FreeBSD
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ctfdump/ctfdump.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ctfdump/ctfdump.c b/usr.bin/ctfdump/ctfdump.c index 4feb1beda45..ce9e8fd9700 100644 --- a/usr.bin/ctfdump/ctfdump.c +++ b/usr.bin/ctfdump/ctfdump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ctfdump.c,v 1.17 2017/10/28 09:30:27 mpi Exp $ */ +/* $OpenBSD: ctfdump.c,v 1.18 2017/11/03 12:53:38 mpi Exp $ */ /* * Copyright (c) 2016 Martin Pieuchot <mpi@openbsd.org> @@ -374,8 +374,8 @@ ctf_dump(const char *p, size_t size, uint8_t flags) l = printf(" [%zu] FUNC ", i); if (s != NULL) - printf("(%s)", s); - printf(" returns: %u args: (", *fsp++); + printf("(%s) ", s); + printf("returns: %u args: (", *fsp++); while (vlen-- > 0 && fsp < fend) printf("%u%s", *fsp++, (vlen > 0) ? ", " : ""); printf(")\n"); |