diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-12-19 00:03:45 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-12-19 00:24:36 +0900 |
| commit | e818f9c8a5b93791eeedeeb071bd0478ecad1205 (patch) | |
| tree | 17eac7fa28c4eaa22a3414a4de102e6504c3c79d /src/AbstractDiskWriter.cc | |
| parent | 3cf156240b81054093e3bb2870a642d2273d9917 (diff) | |
Use %lx for DWORD.
GetLastError() returns DWORD, not C-String.
Diffstat (limited to 'src/AbstractDiskWriter.cc')
| -rw-r--r-- | src/AbstractDiskWriter.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AbstractDiskWriter.cc b/src/AbstractDiskWriter.cc index ec04594a..904e4a5a 100644 --- a/src/AbstractDiskWriter.cc +++ b/src/AbstractDiskWriter.cc @@ -212,7 +212,7 @@ void AbstractDiskWriter::truncate(uint64_t length) HANDLE handle = LongToHandle(_get_osfhandle(fd_)); seek(length); if(SetEndOfFile(handle) == 0) { - throw DL_ABORT_EX2(fmt("SetEndOfFile failed. cause: %s", + throw DL_ABORT_EX2(fmt("SetEndOfFile failed. cause: %lx", GetLastError()), error_code::FILE_IO_ERROR); } |
