From 8acf8c2da7fa56d2170be8e17b365bb2cf3a5227 Mon Sep 17 00:00:00 2001 From: Greg Kaiser Date: Mon, 3 Jun 2019 14:12:42 -0700 Subject: [PATCH] fastboot: windows: Minor printf format fixes We recently changed 'xfer' to a size_t, so update the DBG format accordingly. We also fix a long standing issue with format for the unsigned 'read'. Test: TreeHugger Change-Id: I3dc5f26a033fea64119016802bc9cdb54bbb7b52 --- fastboot/usb_windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastboot/usb_windows.cpp b/fastboot/usb_windows.cpp index 5a3cefcac..bf840f888 100644 --- a/fastboot/usb_windows.cpp +++ b/fastboot/usb_windows.cpp @@ -205,7 +205,7 @@ ssize_t WindowsUsbTransport::Read(void* data, size_t len) { ret = AdbReadEndpointSync(handle_->adb_read_pipe, data, xfer, &read, time_out); errno = GetLastError(); - DBG("usb_read got: %ld, expected: %d, errno: %d\n", read, xfer, errno); + DBG("usb_read got: %lu, expected: %zu, errno: %d\n", read, xfer, errno); if (ret == 0) { // assume ERROR_INVALID_HANDLE indicates we are disconnected if (errno == ERROR_INVALID_HANDLE)