Fixed debug build (format string/argument mismatches).

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38619 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2010-09-12 15:09:14 +00:00
parent e83635fd5a
commit 886c627650
7 changed files with 20 additions and 14 deletions
+6 -4
View File
@@ -1074,7 +1074,8 @@ StringFromStream(BString *string, BMallocIO *stream, bool endianSwap)
if (length < 0 || length > 10000) {
// TODO: should fail here
PRINT(("problems instatiating a string, length probably wrong %d\n", length));
PRINT(("problems instatiating a string, length probably wrong %"
B_PRId32 "\n", length));
return;
}
@@ -1637,7 +1638,7 @@ void
_ThrowOnError(status_t error, const char *DEBUG_ONLY(file), int32 DEBUG_ONLY(line))
{
if (error != B_OK) {
PRINT(("failing %s at %s:%d\n", strerror(error), file, line));
PRINT(("failing %s at %s:%d\n", strerror(error), file, (int)line));
throw error;
}
}
@@ -1647,7 +1648,7 @@ void
_ThrowIfNotSize(ssize_t size, const char *DEBUG_ONLY(file), int32 DEBUG_ONLY(line))
{
if (size < B_OK) {
PRINT(("failing %s at %s:%d\n", strerror(size), file, line));
PRINT(("failing %s at %s:%d\n", strerror(size), file, (int)line));
throw (status_t)size;
}
}
@@ -1658,7 +1659,8 @@ _ThrowOnError(status_t error, const char *DEBUG_ONLY(debugString),
const char *DEBUG_ONLY(file), int32 DEBUG_ONLY(line))
{
if (error != B_OK) {
PRINT(("failing %s, %s at %s:%d\n", debugString, strerror(error), file, line));
PRINT(("failing %s, %s at %s:%d\n", debugString, strerror(error), file,
(int)line));
throw error;
}
}