summaryrefslogtreecommitdiff
path: root/libusb/os/windows_winusb.c
diff options
context:
space:
mode:
authorChris Dickens <christopher.a.dickens@gmail.com>2020-08-27 10:58:10 -0700
committerChris Dickens <christopher.a.dickens@gmail.com>2020-09-13 00:08:22 -0700
commitcca8852dc9e463d86f9d4cf5a85269173c808fc9 (patch)
tree76ee2f004009d7a5ab97dd0caab96b5b726348f0 /libusb/os/windows_winusb.c
parent11cc9952823fbb47b7596aec30a205f68f3a8062 (diff)
downloadlibusb-cca8852dc9e463d86f9d4cf5a85269173c808fc9.tar.gz
core: Miscellaneous internal logging cleanup
* Correct comments for usbi_{sn,vsn}printf(); strings are terminated with a NUL byte (ASCII value), not NULL (pointer value) * Make usbi_log_v() static; it is not used anywhere else in the library * Remove an unnecessary NUL-termination * Remove check for LIBUSB_LOG_LEVEL_NONE in log_str() * Remove UNICODE case for system logging on Windows; it was only used for WinCE * Remove 'usbi_' prefix from static functions * Simplify check for whether the logging level is sufficiently high to allow the message to be printed * Avoid calling usbi_clock_gettime() unless the timestamp will actually be used * Use the monotonic clock for logging timestamps; this prevents jumps in the timestamps if the system clock is changed * Use TIMESPEC_SUB() macro to get relative timestamp instead of open-coding the calculation * Use PRIxPTR to print sys_dev in libusb_wrap_sys_device() instead of casting to a void pointer Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'libusb/os/windows_winusb.c')
-rw-r--r--libusb/os/windows_winusb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libusb/os/windows_winusb.c b/libusb/os/windows_winusb.c
index 1b982ed..97215e1 100644
--- a/libusb/os/windows_winusb.c
+++ b/libusb/os/windows_winusb.c
@@ -32,7 +32,6 @@
#include <fcntl.h>
#include <process.h>
#include <stdio.h>
-#include <inttypes.h>
#include <objbase.h>
#include <winioctl.h>