summaryrefslogtreecommitdiff
path: root/general/echo/kmdf/exe/echoapp.cpp
diff options
context:
space:
mode:
authorkarlf <[email protected]>2016-08-11 13:28:13 -0700
committerkarlf <[email protected]>2016-08-11 13:28:13 -0700
commit96eb96dfb613e4c745db6bd1f53a92fe7e2290fc (patch)
treead5f3ede5cbcd6b598677ce41bcf8318471bdd92 /general/echo/kmdf/exe/echoapp.cpp
parent687b274aa38fd05c8c26e3068932121876d7f745 (diff)
Updated for "Windows 10 Anniversary Update" (Version 1607)
Diffstat (limited to 'general/echo/kmdf/exe/echoapp.cpp')
-rw-r--r--general/echo/kmdf/exe/echoapp.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/general/echo/kmdf/exe/echoapp.cpp b/general/echo/kmdf/exe/echoapp.cpp
index 2383db2c..348b4976 100644
--- a/general/echo/kmdf/exe/echoapp.cpp
+++ b/general/echo/kmdf/exe/echoapp.cpp
@@ -446,7 +446,7 @@ AsyncIo(
error = GetLastError();
if (error != ERROR_IO_PENDING) {
- printf(" %dth Read failed %d \n",i, GetLastError());
+ printf(" %dth Read failed %d \n", (ULONG) i, GetLastError());
result = FALSE;
goto Error;
}
@@ -460,7 +460,7 @@ AsyncIo(
&pOvList[i]) == 0) {
error = GetLastError();
if (error != ERROR_IO_PENDING) {
- printf(" %dth Write failed %d \n",i, GetLastError());
+ printf(" %dth Write failed %d \n", (ULONG) i, GetLastError());
result = FALSE;
goto Error;
}
@@ -487,7 +487,7 @@ AsyncIo(
if (ioType == READER_TYPE) {
i = completedOv - pOvList;
- printf("Number of bytes read by request number %d is %d\n", i, numberOfBytesTransferred);
+ printf("Number of bytes read by request number %Id is %d\n", i, numberOfBytesTransferred);
//
// If we're done with the I/Os, then exit
@@ -513,7 +513,7 @@ AsyncIo(
completedOv) == 0) {
error = GetLastError();
if (error != ERROR_IO_PENDING) {
- printf("%dth Read failed %d \n", i, GetLastError());
+ printf("%Idth Read failed %d \n", i, GetLastError());
result = FALSE;
goto Error;
}
@@ -522,7 +522,7 @@ AsyncIo(
i = completedOv - pOvList;
- printf("Number of bytes written by request number %d is %d\n", i, numberOfBytesTransferred);
+ printf("Number of bytes written by request number %Id is %d\n", i, numberOfBytesTransferred);
//
// If we're done with the I/Os, then exit
@@ -549,7 +549,7 @@ AsyncIo(
error = GetLastError();
if (error != ERROR_IO_PENDING) {
- printf("%dth write failed %d \n", i, GetLastError());
+ printf("%Idth write failed %d \n", i, GetLastError());
result = FALSE;
goto Error;
}