tools/set_haiku_revision: Fix wrong type of arguments to formatting function
Pointed out by lgtm. Change-Id: I385356c8bafec99d15184d5475f23e6418ec9849 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3889 Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
committed by
Jérôme Duval
parent
20308ad6a7
commit
c1eed5c7f3
@@ -406,11 +406,11 @@ public:
|
|||||||
|
|
||||||
if ((size_t)bytesRead != size) {
|
if ((size_t)bytesRead != size) {
|
||||||
if (errorMessage) {
|
if (errorMessage) {
|
||||||
throw Exception("%s Read too few bytes (%d/%d).",
|
throw Exception("%s Read too few bytes (%zd/%zu).",
|
||||||
errorMessage, (int)bytesRead, (int)size);
|
errorMessage, bytesRead, size);
|
||||||
} else {
|
} else {
|
||||||
throw Exception("Read too few bytes (%ld/%lu).",
|
throw Exception("Read too few bytes (%zd/%zu).",
|
||||||
(int)bytesRead, (int)size);
|
bytesRead, size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -427,11 +427,11 @@ public:
|
|||||||
|
|
||||||
if ((size_t)bytesWritten != size) {
|
if ((size_t)bytesWritten != size) {
|
||||||
if (errorMessage) {
|
if (errorMessage) {
|
||||||
throw Exception("%s Wrote too few bytes (%d/%d).",
|
throw Exception("%s Wrote too few bytes (%zd/%zu).",
|
||||||
errorMessage, (int)bytesWritten, (int)size);
|
errorMessage, bytesWritten, size);
|
||||||
} else {
|
} else {
|
||||||
throw Exception("Wrote too few bytes (%ld/%lu).",
|
throw Exception("Wrote too few bytes (%zd/%zu).",
|
||||||
(int)bytesWritten, (int)size);
|
bytesWritten, size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -611,8 +611,8 @@ void ELFObject::_ParseELFHeader()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
template<typename ShdrType>
|
template<typename ShdrType>
|
||||||
bool ELFObject::_ReadSectionHeader(int index, SectionInfo& info)
|
bool ELFObject::_ReadSectionHeader(int index, SectionInfo& info)
|
||||||
{
|
{
|
||||||
@@ -650,7 +650,7 @@ bool ELFObject::_ReadSectionHeader(int index, SectionInfo& info)
|
|||||||
if (fSectionHeaderStrings) {
|
if (fSectionHeaderStrings) {
|
||||||
if (nameIndex >= (uint32_t)fSectionHeaderStringsLength) {
|
if (nameIndex >= (uint32_t)fSectionHeaderStringsLength) {
|
||||||
throw Exception(EIO, "Invalid ELF section header: "
|
throw Exception(EIO, "Invalid ELF section header: "
|
||||||
"invalid name index: %lu.", nameIndex);
|
"invalid name index: %" PRIu32 ".", nameIndex);
|
||||||
}
|
}
|
||||||
info.name = fSectionHeaderStrings + nameIndex;
|
info.name = fSectionHeaderStrings + nameIndex;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user