gprofng: Fix -Wformat= warnings
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Tue, 24 Oct 2023 02:55:01 +0000 (19:55 -0700)
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Wed, 25 Oct 2023 06:27:30 +0000 (23:27 -0700)
commit53beac2e23bcffe632bb837c97003998e6986ce9
tree5376681dc206ebe3764915e873daf7cb89905a6c
parent7ac6d0c38c365a6778a91fd37203c21561c61c4c
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.
13 files changed:
gprofng/libcollector/heaptrace.c
gprofng/libcollector/hwprofile.c
gprofng/libcollector/iolib.c
gprofng/libcollector/iotrace.c
gprofng/libcollector/jprofile.c
gprofng/libcollector/libcol_util.h
gprofng/libcollector/profile.c
gprofng/libcollector/synctrace.c
gprofng/src/ClassFile.cc
gprofng/src/Emsg.h
gprofng/src/SourceFile.cc
gprofng/src/collector_module.h
gprofng/src/data_pckts.h