svn commit: r345646 - head/contrib/elftoolchain/readelf

Ed Maste emaste at FreeBSD.org
Thu Mar 28 17:30:48 UTC 2019


Author: emaste
Date: Thu Mar 28 17:30:47 2019
New Revision: 345646
URL: https://svnweb.freebsd.org/changeset/base/345646

Log:
  readelf: add newline after dumping dynamic FLAGS / FLAGS_1
  
  All three dump_flags() callers need a newline after printing the flags.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/contrib/elftoolchain/readelf/readelf.c

Modified: head/contrib/elftoolchain/readelf/readelf.c
==============================================================================
--- head/contrib/elftoolchain/readelf/readelf.c	Thu Mar 28 17:22:31 2019	(r345645)
+++ head/contrib/elftoolchain/readelf/readelf.c	Thu Mar 28 17:30:47 2019	(r345646)
@@ -2741,6 +2741,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[] = {
@@ -3524,7 +3525,6 @@ dump_notes_data(const char *name, uint32_t type, const
 				goto unknown;
 			printf("   Features:");
 			dump_flags(note_feature_ctl_flags, ubuf[0]);
-			printf("\n");
 			return;
 		}
 	}


More information about the svn-src-head mailing list