From dfa1256cf464cef8674edc7a079f6bed6f79b897 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Wed, 29 Apr 2020 17:02:37 +0000 Subject: [PATCH] MFC r345646: readelf: add newline after dumping dynamic FLAGS / FLAGS_1 All three dump_flags() callers need a newline after printing the flags. Reported by: kib Sponsored by: The FreeBSD Foundation --- contrib/elftoolchain/readelf/readelf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/elftoolchain/readelf/readelf.c b/contrib/elftoolchain/readelf/readelf.c index 9e12c8ef7c1..0d8a4a7e60d 100644 --- a/contrib/elftoolchain/readelf/readelf.c +++ b/contrib/elftoolchain/readelf/readelf.c @@ -2845,6 +2845,7 @@ dump_flags(struct flag_desc *desc, uint64_t val) } if (val != 0) printf(" unknown (0x%jx)", (uintmax_t)val); + printf("\n"); } static struct flag_desc dt_flags[] = { @@ -3628,7 +3629,6 @@ dump_notes_data(const char *name, uint32_t type, const char *buf, size_t sz) goto unknown; printf(" Features:"); dump_flags(note_feature_ctl_flags, ubuf[0]); - printf("\n"); return; } } -- 2.45.0