aboutsummaryrefslogtreecommitdiff
path: root/zlib
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2021-08-30 11:08:38 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2021-08-30 11:08:38 -0700
commit6fc590e1f5e43a7ea7d466c18ebb97515baa497f (patch)
tree52654cfeddfe73f5f58803802a6f702a67838d6f /zlib
parent00894ecf4636a242fbd11536acdf50f7891b374a (diff)
downloadbinutils-6fc590e1f5e43a7ea7d466c18ebb97515baa497f.zip
binutils-6fc590e1f5e43a7ea7d466c18ebb97515baa497f.tar.gz
binutils-6fc590e1f5e43a7ea7d466c18ebb97515baa497f.tar.bz2
fbsd-nat: Don't use '%jd' and '%ju' with printf_filtered.
The handler for 'info proc status' for native processes on FreeBSD uses the 'j' size modifier along with uintmax_t / intmax_t casts to output integer values for types such as off_t that are not aliases of a basic C type such as 'int' or 'long'. printf_filtered does not support the 'j' modifer, so this resulted in runtime errors in practice: (gdb) info proc stat process 8674 Name: ls State: T (stopped) Parent process: 8673 Process group: 8674 Session id: 2779 Unrecognized format specifier 'j' in printf Instead, use plongest and pulongest to generate the output strings of these integer values.
Diffstat (limited to 'zlib')
0 files changed, 0 insertions, 0 deletions