fix(symbolize): use correct size_t format specifier
While compiling under Emscripten with _LP64 being 0, Clang complains that the format specifier does not match the actual type (even though size_t and unsigned are probably compatible.)
This commit is contained in:
parent
546906f467
commit
aeee0ef452
@ -249,8 +249,10 @@ bool GetSectionHeaderByName(int fd, const char *name, size_t name_len,
|
||||
}
|
||||
char header_name[kMaxSectionNameLen];
|
||||
if (sizeof(header_name) < name_len) {
|
||||
RAW_LOG(WARNING, "Section name '%s' is too long (%" PRIuS "); "
|
||||
"section will not be found (even if present).", name, name_len);
|
||||
RAW_LOG(WARNING,
|
||||
"Section name '%s' is too long (%zu); "
|
||||
"section will not be found (even if present).",
|
||||
name, name_len);
|
||||
// No point in even trying.
|
||||
return false;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user