Skip to content

Commit

Permalink
WT-2522: Incorrect format code in message
Browse files Browse the repository at this point in the history
Use "%lu" to print the DWORD, it's a 32-bit "unsigned long".
  • Loading branch information
keithbostic committed Mar 31, 2016
1 parent dee78f0 commit 876d4a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/os_win/os_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,8 @@ __win_handle_read(
if (!ReadFile(fh->filehandle, addr, chunk, &nr, &overlapped))
WT_RET_MSG(session,
nr == 0 ? WT_ERROR : __wt_getlasterror(),
"%s: handle-read: ReadFile: failed to read %"
WT_SIZET_FMT " bytes at offset %" PRIuMAX,
"%s: handle-read: ReadFile: failed to read %lu "
"bytes at offset %" PRIuMAX,
fh->name, chunk, (uintmax_t)offset);
}
return (0);
Expand Down Expand Up @@ -485,8 +485,8 @@ __win_handle_write(WT_SESSION_IMPL *session,

if (!WriteFile(fh->filehandle, addr, chunk, &nw, &overlapped))
WT_RET_MSG(session, __wt_getlasterror(),
"%s: handle-write: WriteFile: failed to write %"
WT_SIZET_FMT " bytes at offset %" PRIuMAX,
"%s: handle-write: WriteFile: failed to write %lu "
"bytes at offset %" PRIuMAX,
fh->name, chunk, (uintmax_t)offset);
}
return (0);
Expand Down

0 comments on commit 876d4a1

Please sign in to comment.