private.h : add __attribute__((format(printf,m,n))) to function prototypes of warnprint, errprint, and dbprint. This provides compiler validation that format string specifiers match correctly with the types of the (variadic) parameters passed to these printf-style functions.
windows memory.c : include interface.h header to fix implicit declaration warning generated by use of driver_get_vcpureg
process-list.c : fix warning about signedness when using an int rather than uint32_t as an argument to vmi_read_32_va
interface.h : add function prototype for driver_get_address_width to fix implicit declaration warning from its use in core.c
map-symbol.c : fix warning about signedness when using a 'char*' rather than an 'unsigned char*' as an argument to vmi_print_hex
map-addr.c : fix warning about signedness when using a 'char*' rather than an 'unsigned char*' as an argument to mi_print_hex
interface.h : fix incorrect function prototypes for driver_set_reg_access and driver_set_mem_access
events.c : include driver/interface.h header to fix implicit declaration warning generated by use of driver_set_reg_access, driver_set_mem_access, and driver_events_listen
xen_events.c : add parentheses to be more safe and explicit when using the result of an assignment as a condition.
xen_events.h : include unistd.h header to fix implicit declaration warning generated by use of getpagesize()
kpcr.c : non-void function 'find_windows_version' should return a value
private.h : add prototype for get_memory_layout to fix implicit declaration in accessors.c
private.h : add function prototype for linux_pid_to_pgd to fix implicit declaration warning from its use in memory.c
xen.c : fix signedness warning; xs_directory takes a pointer to unsigned int as its size parameter
core.c : find_cr3 should return a default in the error case
vmifs.c : include stdlib.h to avoid warning about implicit declaration of function 'atoi'
Misc format string fixes to quiet architecture-dependent compiler warnings. Many invocations of errprint and dbprint were affected along with a handful of printf calls. Now using %zu for size_t and PRI* conversion specifier macros from inttypes.h. Also removed extra conversion specifiers for which a corresponding parameter was not present.