Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Apr 2020 17:02:38 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r360472 - stable/12/contrib/elftoolchain/readelf
Message-ID:  <202004291702.03TH2cqR047741@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Wed Apr 29 17:02:37 2020
New Revision: 360472
URL: https://svnweb.freebsd.org/changeset/base/360472

Log:
  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

Modified:
  stable/12/contrib/elftoolchain/readelf/readelf.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/contrib/elftoolchain/readelf/readelf.c
==============================================================================
--- stable/12/contrib/elftoolchain/readelf/readelf.c	Wed Apr 29 16:28:40 2020	(r360471)
+++ stable/12/contrib/elftoolchain/readelf/readelf.c	Wed Apr 29 17:02:37 2020	(r360472)
@@ -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
 				goto unknown;
 			printf("   Features:");
 			dump_flags(note_feature_ctl_flags, ubuf[0]);
-			printf("\n");
 			return;
 		}
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004291702.03TH2cqR047741>