Skip to content

Commit

Permalink
Some include and function prefix changes for Fuchsia
Browse files Browse the repository at this point in the history
  • Loading branch information
hctim committed Jul 26, 2024
1 parent 955b5d4 commit aac1dd8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
#include "gwp_asan/utilities.h"

#include <alloca.h>
#include <inttypes.h>
#include <stdio.h>
#include <string.h>
#include <zircon/sanitizer.h>
#include <zircon/status.h>

namespace gwp_asan {
void die(const char *Message) {
Expand All @@ -22,7 +22,7 @@ void die(const char *Message) {

void dieWithErrorCode(const char *Message, int64_t ErrorCode) {
const char *error_str =
zx_status_get_string(static_cast<zx_status_t>(ErrorCode));
_zx_status_get_string(static_cast<zx_status_t>(ErrorCode));
size_t buffer_size = strlen(Message) + 32 + strlen(error_str);
char *buffer = static_cast<char *>(alloca(buffer_size));
snprintf(buffer, buffer_size, "%s (Error Code: %s)", Message, error_str);
Expand Down

0 comments on commit aac1dd8

Please sign in to comment.