aboutsummaryrefslogtreecommitdiff
path: root/gprofng/src/ClassFile.cc
diff options
context:
space:
mode:
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>2023-10-23 19:55:01 -0700
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>2023-10-24 23:27:30 -0700
commit53beac2e23bcffe632bb837c97003998e6986ce9 (patch)
tree5376681dc206ebe3764915e873daf7cb89905a6c /gprofng/src/ClassFile.cc
parent7ac6d0c38c365a6778a91fd37203c21561c61c4c (diff)
downloadgdb-53beac2e23bcffe632bb837c97003998e6986ce9.zip
gdb-53beac2e23bcffe632bb837c97003998e6986ce9.tar.gz
gdb-53beac2e23bcffe632bb837c97003998e6986ce9.tar.bz2
gprofng: Fix -Wformat= warnings
Added format attribute to several gprofng functions. Fixed -Wformat= warnings. gprofng/ChangeLog 2023-10-23 Vladimir Mezentsev <vladimir.mezentsev@oracle.com> * libcollector/heaptrace.c: Fixed -Wformat= warnings. * libcollector/hwprofile.c: Likewise. * libcollector/iolib.c: Likewise. * libcollector/iotrace.c: Likewise. * libcollector/jprofile.c: Likewise. * libcollector/profile.c: Likewise. * libcollector/synctrace.c: Likewise. * src/ClassFile.cc: Likewise. * src/SourceFile.cc: Likewise. * libcollector/libcol_util.h: Added format attribute. * src/Emsg.h: Likewise. * src/collector_module.h: Likewise. * src/data_pckts.h: Define fld_sizeof.
Diffstat (limited to 'gprofng/src/ClassFile.cc')
-rw-r--r--gprofng/src/ClassFile.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gprofng/src/ClassFile.cc b/gprofng/src/ClassFile.cc
index 0f1d468..d59c963 100644
--- a/gprofng/src/ClassFile.cc
+++ b/gprofng/src/ClassFile.cc
@@ -1594,7 +1594,7 @@ ClassFile::get_disasm (uint64_t inst_address, uint64_t end_address,
{
append_msg (CMSG_ERROR, GTXT ("Cannot disassemble class file %s (%s), implausible size = %lld"),
get_name (), dbeFile->get_location (),
- (end_address - start_address));
+ (long long) (end_address - start_address));
inst_size = 0;
return NULL;
}