Skip to content

Commit

Permalink
[libpas] Suppress warnings for %llu format specifier for uint64_t.
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=240541

Reviewed by Yusuke Suzuki.

Use PRIu64 instead.

* libpas/src/libpas/pas_utils.c:
(pas_assertion_failed_no_inline_with_extra_detail):

Canonical link: https://commits.webkit.org/250667@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294364 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
basuke committed May 17, 2022
1 parent 30efcd4 commit 1cdb127
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/bmalloc/libpas/src/libpas/pas_utils.c
Expand Up @@ -32,6 +32,7 @@
#include "pas_lock.h"
#include "pas_log.h"
#include "pas_string_stream.h"
#include <inttypes.h>
#include <stdarg.h>
#include <stdio.h>
#include <unistd.h>
Expand Down Expand Up @@ -113,7 +114,7 @@ void pas_assertion_failed_no_inline(const char* filename, int line, const char*
void pas_assertion_failed_no_inline_with_extra_detail(const char* filename, int line, const char* function, const char* expression, uint64_t extra)
{
pas_log("[%d] pas assertion failed (with extra detail): ", getpid());
pas_log("%s:%d: %s: assertion %s failed. Extra data: %llu.\n", filename, line, function, expression, extra);
pas_log("%s:%d: %s: assertion %s failed. Extra data: %" PRIu64 ".\n", filename, line, function, expression, extra);
pas_crash_with_info_impl((uint64_t)filename, line, (uint64_t) function, (uint64_t) expression, extra, 1337, 0xbeef0bff);
}

Expand Down

0 comments on commit 1cdb127

Please sign in to comment.