| 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;
|
| }
|
|
|
|
|