aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlex Coplan <alex.coplan@arm.com>2023-06-02 16:58:19 +0100
committerAlex Coplan <alex.coplan@arm.com>2023-06-02 16:58:24 +0100
commitf2e60a00c7c017bd87ba9afb189cbb77d8c92925 (patch)
tree994b0bf52733e19bcff21e4c584faabdd2e84d76 /gcc
parent9872d56661ade358c440914361c1ebdccd975bec (diff)
downloadgcc-f2e60a00c7c017bd87ba9afb189cbb77d8c92925.zip
gcc-f2e60a00c7c017bd87ba9afb189cbb77d8c92925.tar.gz
gcc-f2e60a00c7c017bd87ba9afb189cbb77d8c92925.tar.bz2
btf: Fix -Wformat errors
g:7aae58b04b92303ccda3ead600be98f0d4b7f462 introduced -Wformat errors breaking bootstrap on some targets. This patch fixes that. Committed as obvious. gcc/ChangeLog: * btfout.cc (btf_asm_type): Use PRIu64 instead of %lu for uint64_t. (btf_asm_datasec_type): Likewise.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/btfout.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/btfout.cc b/gcc/btfout.cc
index f51ccf7..1ea68b9 100644
--- a/gcc/btfout.cc
+++ b/gcc/btfout.cc
@@ -799,7 +799,7 @@ btf_asm_type (ctf_container_ref ctfc, ctf_dtdef_ref dtd)
}
dw2_asm_output_data (4, dtd->dtd_data.ctti_name,
- "TYPE %lu BTF_KIND_%s '%s'",
+ "TYPE %" PRIu64 " BTF_KIND_%s '%s'",
get_btf_id (dtd->dtd_type), btf_kind_name (btf_kind),
dtd->dtd_name);
dw2_asm_output_data (4, BTF_TYPE_INFO (btf_kind, btf_kflag, btf_vlen),
@@ -967,7 +967,7 @@ btf_asm_datasec_type (ctf_container_ref ctfc, btf_datasec_t ds, ctf_id_t id,
size_t stroffset)
{
dw2_asm_output_data (4, ds.name_offset + stroffset,
- "TYPE %lu BTF_KIND_DATASEC '%s'",
+ "TYPE %" PRIu64 " BTF_KIND_DATASEC '%s'",
btf_absolute_datasec_id (id), ds.name);
dw2_asm_output_data (4, BTF_TYPE_INFO (BTF_KIND_DATASEC, 0,
ds.entries.length ()),