]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Tiny stylistic spacing and comment tweaks
authorNick Alcock <nick.alcock@oracle.com>
Thu, 27 Feb 2025 19:24:10 +0000 (19:24 +0000)
committerNick Alcock <nick.alcock@oracle.com>
Sun, 16 Mar 2025 15:25:28 +0000 (15:25 +0000)
libctf/ctf-create.c
libctf/ctf-dedup.c

index 2212c2fb199d3d6606cd9c6dc22a1ac54607ced2..33c13b52fd63fc79a9766dd18a5093e0c70ea4e0 100644 (file)
@@ -1148,7 +1148,7 @@ ctf_add_enumerator (ctf_dict_t *fp, ctf_id_t enid, const char *name,
     return (ctf_set_errno (fp, EINVAL));
 
   if ((enid = ctf_type_resolve_unsliced (fp, enid)) == CTF_ERR)
-      return -1;                               /* errno is set for us.  */
+    return -1;                                 /* errno is set for us.  */
 
   dtd = ctf_dtd_lookup (fp, enid);
   fp = ctf_get_dict (fp, enid);
@@ -1328,7 +1328,7 @@ ctf_add_member_offset (ctf_dict_t *fp, ctf_id_t souid, const char *name,
             cannot insert right after such a member without explicit offset
             specification, because its alignment and size is not known.  */
          if (ltype == CTF_ERR)
-           return -1;  /* errno is set for us.  */
+           return -1;                          /* errno is set for us.  */
 
          if (is_incomplete)
            {
@@ -1669,7 +1669,6 @@ ctf_add_type_mapping (ctf_dict_t *src_fp, ctf_id_t src_type,
     return;
 
   src_type = ctf_type_to_index (src_fp, src_type);
-
   dst_type = ctf_type_to_index (dst_fp, dst_type);
 
   if (dst_fp->ctf_link_type_mapping == NULL)
index 76f9709b53d135fc558f3ede86c6d29fa79f949d..f69c959e28e9433d3a9a98bfded160fac3feff8c 100644 (file)
@@ -3056,7 +3056,7 @@ ctf_dedup_emit_struct_members (ctf_dict_t *output, ctf_dict_t **inputs,
          if (name == NULL)
            name = "";
 #ifdef ENABLE_LIBCTF_HASH_DEBUGGING
-         ctf_dprintf ("Emitting %s, offset %zi\n", name, offset);
+         ctf_dprintf ("Emitting %s, target-mapped type %lx, offset %zi\n", name, membtype, offset);
 #endif
          if (ctf_add_member_offset (target, target_type, name,
                                     membtype, offset) < 0)