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:
parent
e83635fd5a
commit
886c627650
@ -195,7 +195,7 @@ BDeskWindow::MenusBeginning()
|
||||
// remove all current addon shortcuts
|
||||
for (std::set<uint32>::iterator it= fCurrentAddonShortcuts.begin();
|
||||
it != fCurrentAddonShortcuts.end(); it++) {
|
||||
PRINT(("removing shortcut %c\n", *it));
|
||||
PRINT(("removing shortcut %c\n", (int)*it));
|
||||
RemoveShortcut(*it, B_OPTION_KEY | B_COMMAND_KEY);
|
||||
}
|
||||
|
||||
|
@ -1493,8 +1493,8 @@ CopyFolder(BEntry *srcEntry, BDirectory *destDir, CopyLoopControl *loopControl,
|
||||
|
||||
// entry is a mount point, do not copy it
|
||||
if (statbuf.st_dev != sourceDeviceID) {
|
||||
PRINT(("Avoiding mount point %d, %d \n", statbuf.st_dev,
|
||||
sourceDeviceID));
|
||||
PRINT(("Avoiding mount point %" B_PRIdDEV ", %" B_PRIdDEV "\n",
|
||||
statbuf.st_dev, sourceDeviceID));
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -1220,7 +1220,8 @@ FindPanel::BuildAttrQuery(BQuery *query, bool &dynamicDate) const
|
||||
DEBUG_ONLY(time_t result =)
|
||||
parsedate_etc(textControl->TextView()->Text(), -1, &flags);
|
||||
dynamicDate = (flags & PARSEDATE_RELATIVE_TIME) != 0;
|
||||
PRINT(("parsedate_etc - date is %srelative, %l\n",
|
||||
PRINT(("parsedate_etc - date is %srelative, %"
|
||||
B_PRIdTIME "\n",
|
||||
dynamicDate ? "" : "not ", result));
|
||||
|
||||
query->PushDate(textControl->TextView()->Text());
|
||||
|
@ -1252,7 +1252,8 @@ Model::GetVersionString(BString &result, version_kind kind)
|
||||
void
|
||||
Model::PrintToStream(int32 level, bool deep)
|
||||
{
|
||||
PRINT(("model name %s, entry name %s, inode %Lx, dev %x, directory inode %Lx\n",
|
||||
PRINT(("model name %s, entry name %s, inode %" B_PRIdINO ", dev %" B_PRIdDEV
|
||||
", directory inode %" B_PRIdINO "\n",
|
||||
Name() ? Name() : "**empty name**",
|
||||
EntryRef()->name ? EntryRef()->name : "**empty ref name**",
|
||||
NodeRef()->node,
|
||||
@ -1344,7 +1345,8 @@ Model::PrintToStream(int32 level, bool deep)
|
||||
if (IsNodeOpen()) {
|
||||
node_ref nodeRef;
|
||||
fNode->GetNodeRef(&nodeRef);
|
||||
PRINT(("node ref of open Node %Lx %x\n", nodeRef.node, nodeRef.device));
|
||||
PRINT(("node ref of open Node %" B_PRIdINO " %" B_PRIdDEV "\n",
|
||||
nodeRef.node, nodeRef.device));
|
||||
}
|
||||
|
||||
if (deep && IsSymLink()) {
|
||||
|
@ -1499,7 +1499,7 @@ status_t
|
||||
TTracker::NeedMoreNodeMonitors()
|
||||
{
|
||||
fNodeMonitorCount += kNodeMonitorBumpValue;
|
||||
PRINT(("bumping nodeMonitorCount to %d\n", fNodeMonitorCount));
|
||||
PRINT(("bumping nodeMonitorCount to %" B_PRId32 "\n", fNodeMonitorCount));
|
||||
|
||||
struct rlimit rl;
|
||||
rl.rlim_cur = fNodeMonitorCount;
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -325,7 +325,7 @@ BViewState::BViewState(const BMessage &message)
|
||||
message.FindInt32(kViewStateViewModeName, (int32 *)&fViewMode);
|
||||
message.FindInt32(kViewStateLastIconModeName, (int32 *)&fLastIconMode);
|
||||
message.FindInt32(kViewStateLastIconSizeName,(int32 *)&fLastIconSize);
|
||||
message.FindInt32(kViewStateIconSizeName, (int32 *)&fIconSize);
|
||||
message.FindInt32(kViewStateIconSizeName, (int32 *)&fIconSize);
|
||||
message.FindPoint(kViewStateListOriginName, &fListOrigin);
|
||||
message.FindPoint(kViewStateIconOriginName, &fIconOrigin);
|
||||
message.FindInt32(kViewStatePrimarySortAttrName,
|
||||
@ -493,8 +493,9 @@ BViewState::_Sanitize(BViewState *state, bool fixOnly)
|
||||
&& state->fLastIconMode != kIconMode
|
||||
&& state->fLastIconMode != kMiniIconMode
|
||||
&& state->fLastIconMode != 0)) {
|
||||
PRINT(("Bad data instantiating ViewState, view mode %x, lastIconMode %x\n",
|
||||
state->fViewMode, state->fLastIconMode));
|
||||
PRINT(("Bad data instantiating ViewState, view mode %" B_PRIx32
|
||||
", lastIconMode %" B_PRIx32 "\n", state->fViewMode,
|
||||
state->fLastIconMode));
|
||||
|
||||
delete state;
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user