+2019-06-28  Nick Alcock <nick.alcock@oracle.com>
+
+       * ctf-dump.c (ctf_dump_format_type): Prefix hex strings with 0x.
+       (ctf_dump_funcs): Likewise.
+
 2019-06-19  Nick Alcock <nick.alcock@oracle.com>
 
        * ctf-open-bfd.c: Add swap.h and ctf-endian.h.
 
        }
       else
        {
-         if (asprintf (&bit, " %lx: %s (size %lx)", id, buf[0] == '\0' ?
+         if (asprintf (&bit, " %lx: %s (size 0x%lx)", id, buf[0] == '\0' ?
                        "(nameless)" : buf,
                        (unsigned long) ctf_type_size (fp, id)) < 0)
            goto oom;
       sym_name = ctf_lookup_symbol_name (fp, i);
       if (sym_name[0] == '\0')
        {
-         if (asprintf (&bit, "%lx ", (unsigned long) i) < 0)
+         if (asprintf (&bit, "0x%lx ", (unsigned long) i) < 0)
            goto oom;
        }
       else
        {
-         if (asprintf (&bit, "%s (%lx) ", sym_name, (unsigned long) i) < 0)
+         if (asprintf (&bit, "%s (0x%lx) ", sym_name, (unsigned long) i) < 0)
            goto oom;
        }
       str = ctf_str_append (str, bit);