Fix various 64 bit related warnings

Mostly printf() format strings and signed-unsigned comparisons.
Fixes the x86_64 build.
This commit is contained in:
Ingo Weinhold
2013-12-06 14:17:58 +01:00
parent bff0809603
commit dac7b7c980
10 changed files with 40 additions and 38 deletions
+4 -4
View File
@@ -188,7 +188,7 @@ class SelectBegin : public SelectTraceEntry {
virtual void AddDump(TraceOutput& out)
{
SelectTraceEntry::AddDump(out, "select begin: ");
out.Print(", timeout: %lld", fTimeout);
out.Print(", timeout: %" B_PRIdBIGTIME, fTimeout);
}
private:
@@ -213,7 +213,7 @@ class SelectDone : public SelectTraceEntry {
if (fStatus == B_OK)
SelectTraceEntry::AddDump(out, "select done: ");
else
out.Print("select done: error: 0x%lx", fStatus);
out.Print("select done: error: %#" B_PRIx32, fStatus);
}
private:
@@ -319,7 +319,7 @@ class PollBegin : public PollTraceEntry {
{
out.Print("poll begin: ");
PollTraceEntry::AddDump(out);
out.Print(", timeout: %lld", fTimeout);
out.Print(", timeout: %" B_PRIdBIGTIME, fTimeout);
}
private:
@@ -343,7 +343,7 @@ class PollDone : public PollTraceEntry {
out.Print("poll done: count: %d: ", fResult);
PollTraceEntry::AddDump(out);
} else
out.Print("poll done: error: 0x%x", fResult);
out.Print("poll done: error: %#x", fResult);
}
private: