Skip to content

Commit

Permalink
Fix a Fuchsia formatter type mismatch flagged by the pending Clang ro…
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-simmons authored and kjlubick committed Jul 14, 2023
1 parent de27029 commit f13732c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions shell/platform/fuchsia/runtime/dart/utils/vmo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ bool VmoFromFilename(const std::string& filename,
fdio_open_fd(filename.c_str(), static_cast<uint32_t>(flags), &fd);
if (status != ZX_OK) {
FX_LOGF(ERROR, LOG_TAG, "fdio_open_fd(\"%s\", %08x) failed: %s",
filename.c_str(), flags, zx_status_get_string(status));
filename.c_str(), static_cast<uint32_t>(flags),
zx_status_get_string(status));
return false;
}
bool result = VmoFromFd(fd, executable, buffer);
Expand All @@ -91,7 +92,8 @@ bool VmoFromFilenameAt(int dirfd,
static_cast<uint32_t>(flags), &fd);
if (status != ZX_OK) {
FX_LOGF(ERROR, LOG_TAG, "fdio_open_fd_at(%d, \"%s\", %08x) failed: %s",
dirfd, filename.c_str(), flags, zx_status_get_string(status));
dirfd, filename.c_str(), static_cast<uint32_t>(flags),
zx_status_get_string(status));
return false;
}
bool result = VmoFromFd(fd, executable, buffer);
Expand Down

0 comments on commit f13732c

Please sign in to comment.