Fix some -Wjump_misses_init warnings (found by clang).
Fix some cases where %zd was used wrongly across the tree.
<stdint.h>: Move out ptrdiff_t type. The ISO C does not specify that <stdint.h> should provide this type, this type should be declared in <stddef.h> for use by userland. Since we do not want to
<stdint.h>: Move out ptrdiff_t type. The ISO C does not specify that <stdint.h> should provide this type, this type should be declared in <stddef.h> for use by userland. Since we do not want to create a separate header for this useful type to be used by kernel, move it to <sys/types.h> under _KERNEL visibility. Adjust few places to include <stddef.h> with a minor whitespace cleanup.
show more ...
ktrdump(8): Fix bzero() argument on error.Intention here is to zero out the struct and not the local pointer,based on change in e7c0dbbaa.Caught-by: gcc80 -Wstringop-overflow
ktrdump(8): Fix wrongly placed 'break' for floating point unpacking.
ktrdump(8): Fix h, hh and t modifiers. Fix i conversion specifier.
ktrdump(8): Adjust the column headers to the columns.
ktrdump(8): Fix %#x format printing.
i386 removal, part 37/x: Remove more i386 related small bits and pieces.
ktrdump: Fix caller chain supportAnd set default kernel file to /boot/kernel/kernel, if sysctlkern.bootfile fails.
ktrdump(8): Remove some stuff that was not meant to be pushed.
ktrdump(8): Add some needed newlines and remove some unneeded ones.err*() will add one automatically, and some printfs were missing one.Also, fix a small table formatting issue.
In userland, fix printf(-like) calls without literal format and no args.I.e., silence gcc's -Wformat-security warnings (in non-contrib code).
add .Mt to man pages in usr.bin/
Remove unneeded inclusions of <sys/cdefs.h> throughout the tree.
Fix a number of incomplete/missing DPADDs.
Fix a few bugs in the new ktrdump code- Pass in the correct machine_valist pointer on i386 (which means we need some indirection on x86_64).- Keep references to all memory blocks that we allocat
Fix a few bugs in the new ktrdump code- Pass in the correct machine_valist pointer on i386 (which means we need some indirection on x86_64).- Keep references to all memory blocks that we allocate and free them when we're done with the machine_valist.- Make sure we don't leak any memory on the error paths either.
Adjust ktrdump(8) for the ktr(4) changes- On i386, we need to extend logged integers to be at least int-sized like vprintf expects.- On x86_64, we unpack the logged arguments into a va_list acco
Adjust ktrdump(8) for the ktr(4) changes- On i386, we need to extend logged integers to be at least int-sized like vprintf expects.- On x86_64, we unpack the logged arguments into a va_list according to the x86_64 ABI rules and then pass it to kvprintf.
ktrdump: handle %c in ktr format strings
ktrdump: fixup size modifiers for integersThe 'j' modifier is actually {u,}intmax_t, not {s,}size_t. Correct thatand add support for 'z' while at it.
manpages: Fix some more typos.
kernel - cleanup and some KTR work for x86_64* Make the KTR option compile for x86_64 builds. It's very expensive still and not recommended due to the way x86_64 handles va_args.* On the userl
kernel - cleanup and some KTR work for x86_64* Make the KTR option compile for x86_64 builds. It's very expensive still and not recommended due to the way x86_64 handles va_args.* On the userland side do not attempt vprintf the va_args yet in the ktrdump code, right now it just crashes.* Cleanup some kprintfs
ktrdump: constify pointer
ktrdump: dump some device infoWalk the kernel devices and populate the 'devnames' hash.
ktrdump: always sort entries when dumpingAlso remove duplicate setting of rflag in ktrdump -a.
123