浏览代码

Use %lx for DWORD.

GetLastError() returns DWORD, not C-String.
Tatsuhiro Tsujikawa 15 年之前
父节点
当前提交
e818f9c8a5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/AbstractDiskWriter.cc

+ 1 - 1
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);
   }