Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Unified Diff: native_client_sdk/src/libraries/nacl_io/getdents_helper.cc

Issue 635113002: [NaCl SDK] nacl_io: Fix real_node when dealing with a windows terminal (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_io/getdents_helper.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/getdents_helper.cc b/native_client_sdk/src/libraries/nacl_io/getdents_helper.cc
index 47cc694b792d7036f9799edc18891055fff75864..239d332441211fb9fdae54991342fbe680f16f34 100644
--- a/native_client_sdk/src/libraries/nacl_io/getdents_helper.cc
+++ b/native_client_sdk/src/libraries/nacl_io/getdents_helper.cc
@@ -11,6 +11,7 @@
#include <algorithm>
#include "nacl_io/log.h"
+#include "nacl_io/osinttypes.h"
#include "sdk_util/macros.h"
@@ -72,7 +73,8 @@ Error GetDentsHelper::GetDents(size_t offs,
// If the buffer is too small, fail
if (size < sizeof(dirent)) {
- LOG_TRACE("dirent buffer size is too small: %d < %d", size, sizeof(dirent));
+ LOG_TRACE("dirent buffer size is too small: %" PRIuS " < %" PRIuS "",
+ size, sizeof(dirent));
return EINVAL;
}
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/dir_node.cc ('k') | native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698