First round of 64-bit safety fixes in the kernel.

* Most of this is incorrect printf format strings. Changed all strings
  causing errors to use the B_PRI* format string definitions, which
  means the strings should be correct across all platforms.
* Some other fixes for errors, casts required, etc.
This commit is contained in:
Alex Smith
2012-06-13 17:42:46 +01:00
parent 23d878482e
commit 0e88a887b4
16 changed files with 202 additions and 183 deletions
+2 -2
View File
@@ -315,7 +315,7 @@ ConditionVariable::Dump() const
for (EntryList::ConstIterator it = fEntries.GetIterator();
ConditionVariableEntry* entry = it.Next();) {
kprintf(" %ld", entry->fThread->id);
kprintf(" %" B_PRId32, entry->fThread->id);
}
kprintf("\n");
}
@@ -330,7 +330,7 @@ ConditionVariable::_Notify(bool all, bool schedulerLocked, status_t result)
if (!fEntries.IsEmpty()) {
if (result > B_OK) {
panic("tried to notify with invalid result %ld\n", result);
panic("tried to notify with invalid result %" B_PRId32 "\n", result);
result = B_ERROR;
}