From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2124) id 339D4384A06B; Fri, 10 May 2024 12:23:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 339D4384A06B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1715343830; bh=9u/ktYycpxK60O41zWky+JJNA1dt0lVW2mKwwa14/g8=; h=From:To:Subject:Date:From; b=F5Vekk8t6MwkFNPD4GxdZyGU0hthfq+zVUQVzcvnaVAz0hHCU2CKIzX5jzNEYIdjG cV3DYHID8m9X/LDWYsJVs7n/oeTPLMroB9IZ7vkd9u7Zyts/rQJqsJYcliSxWDtHF5 CoCRg3OKqaI6iTzjs6SY3aYpSXv9UTbmyC/Rq9Pw= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Nick Clifton To: binutils-cvs@sourceware.org Subject: [binutils-gdb] Add missing \n to the end of warning messages in dwarf.c. X-Act-Checkin: binutils-gdb X-Git-Author: Nick Clifton X-Git-Refname: refs/heads/master X-Git-Oldrev: 78b2db9e7f5a04fdc030a5c65f8873a2c3d3c187 X-Git-Newrev: 2b34e06765779335cef45a579e7a5698e198472b Message-Id: <20240510122350.339D4384A06B@sourceware.org> Date: Fri, 10 May 2024 12:23:50 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D2b34e0676577= 9335cef45a579e7a5698e198472b commit 2b34e06765779335cef45a579e7a5698e198472b Author: Nick Clifton Date: Fri May 10 13:22:58 2024 +0100 Add missing \n to the end of warning messages in dwarf.c. =20 PR 31722 Diff: --- binutils/dwarf.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 3ce79f4e5d1..c5ccc50dae7 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -669,7 +669,7 @@ fetch_indexed_string (uint64_t idx, || index_offset + offset_size > index_section->size) { warn (_("string index of %" PRIu64 " converts to an offset of %#" PR= Ix64 - " which is too big for section %s"), + " which is too big for section %s\n"), idx, index_offset, str_section->name); =20 return _(""); @@ -2840,7 +2840,7 @@ read_and_display_attr_value (unsigned long attribute, break; =20 default: - warn (_("Unrecognized form: %#lx"), form); + warn (_("Unrecognized form: %#lx\n"), form); /* What to do? Consume a byte maybe? */ ++data; break; @@ -2855,14 +2855,14 @@ read_and_display_attr_value (unsigned long attribut= e, case DW_AT_loclists_base: if (debug_info_p->loclists_base) warn (_("CU @ %#" PRIx64 " has multiple loclists_base values " - "(%#" PRIx64 " and %#" PRIx64 ")"), + "(%#" PRIx64 " and %#" PRIx64 ")\n"), debug_info_p->cu_offset, debug_info_p->loclists_base, uvalue); svalue =3D uvalue; if (svalue < 0) { warn (_("CU @ %#" PRIx64 " has has a negative loclists_base " - "value of %#" PRIx64 " - treating as zero"), + "value of %#" PRIx64 " - treating as zero\n"), debug_info_p->cu_offset, svalue); uvalue =3D 0; } @@ -2876,14 +2876,14 @@ read_and_display_attr_value (unsigned long attribut= e, case DW_AT_str_offsets_base: if (debug_info_p->str_offsets_base) warn (_("CU @ %#" PRIx64 " has multiple str_offsets_base values " - "%#" PRIx64 " and %#" PRIx64 ")"), + "%#" PRIx64 " and %#" PRIx64 ")\n"), debug_info_p->cu_offset, debug_info_p->str_offsets_base, uvalue); svalue =3D uvalue; if (svalue < 0) { warn (_("CU @ %#" PRIx64 " has has a negative stroffsets_base " - "value of %#" PRIx64 " - treating as zero"), + "value of %#" PRIx64 " - treating as zero\n"), debug_info_p->cu_offset, svalue); uvalue =3D 0; } @@ -4253,7 +4253,7 @@ process_debug_info (struct dwarf_section * section, if (stemp < 0) { warn (_("CU @ %#" PRIx64 " has has a negative rnglists_base " - "value of %#" PRIx64 " - treating as zero"), + "value of %#" PRIx64 " - treating as zero\n"), debug_info_p->cu_offset, stemp); debug_info_p->rnglists_base =3D 0; } @@ -4622,7 +4622,7 @@ display_debug_sup (struct dwarf_section * section, /* Read the data. */ SAFE_BYTE_GET_AND_INC (version, start, 2, end); if (version < 5) - warn (_("corrupt .debug_sup section: version < 5")); + warn (_("corrupt .debug_sup section: version < 5\n")); =20 SAFE_BYTE_GET_AND_INC (is_supplementary, start, 1, end); if (is_supplementary !=3D 0 && is_supplementary !=3D 1) @@ -7858,7 +7858,7 @@ display_debug_addr (struct dwarf_section *section, =20 if (header_size !=3D 8 && header_size !=3D 16) { - warn (_("Corrupt %s section: expecting header size of 8 or 16, but = found %zd instead"), + warn (_("Corrupt %s section: expecting header size of 8 or 16, but = found %zd instead\n"), section->name, header_size); break; } @@ -7870,7 +7870,7 @@ display_debug_addr (struct dwarf_section *section, || length < (size_t) (entry - curr_header)) { warn (_("Corrupt %s section: unit_length field of %#" PRIx64 - " is invalid"), section->name, length); + " is invalid\n"), section->name, length); break; } end =3D curr_header + length; @@ -7891,7 +7891,7 @@ display_debug_addr (struct dwarf_section *section, =20 if (address_size < 1 || address_size > sizeof (uint64_t)) { - warn (_("Corrupt %s section: address size (%x) is wrong"), + warn (_("Corrupt %s section: address size (%x) is wrong\n"), section->name, address_size); break; } @@ -10664,7 +10664,7 @@ display_debug_names (struct dwarf_section *section,= void *file) if (name_count !=3D buckets_filled + hash_clash_count) warn (_("The name_count (%" PRIu64 ")" " is not the same as the used bucket_count" - " (%zu) + the hash clash count (%zu)"), + " (%zu) + the hash clash count (%zu)\n"), name_count, buckets_filled, hash_clash_count); } =20 @@ -11976,7 +11976,7 @@ load_separate_debug_info (const char * m= ain_filename, + 1); if (debug_filename =3D=3D NULL) { - warn (_("Out of memory")); + warn (_("Out of memory\n")); free (canon_dir); free (canon_filename); return NULL; @@ -12317,7 +12317,7 @@ load_debug_sup_file (const char * main_filename, vo= id * file) filename); if (new_len < 3) { - warn (_("unable to construct path for supplementary debug file")); + warn (_("unable to construct path for supplementary debug file\n")); if (new_len > -1) free (new_name); return;