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:
@@ -195,7 +195,7 @@ BDeskWindow::MenusBeginning()
|
|||||||
// remove all current addon shortcuts
|
// remove all current addon shortcuts
|
||||||
for (std::set<uint32>::iterator it= fCurrentAddonShortcuts.begin();
|
for (std::set<uint32>::iterator it= fCurrentAddonShortcuts.begin();
|
||||||
it != fCurrentAddonShortcuts.end(); it++) {
|
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);
|
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
|
// entry is a mount point, do not copy it
|
||||||
if (statbuf.st_dev != sourceDeviceID) {
|
if (statbuf.st_dev != sourceDeviceID) {
|
||||||
PRINT(("Avoiding mount point %d, %d \n", statbuf.st_dev,
|
PRINT(("Avoiding mount point %" B_PRIdDEV ", %" B_PRIdDEV "\n",
|
||||||
sourceDeviceID));
|
statbuf.st_dev, sourceDeviceID));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1220,7 +1220,8 @@ FindPanel::BuildAttrQuery(BQuery *query, bool &dynamicDate) const
|
|||||||
DEBUG_ONLY(time_t result =)
|
DEBUG_ONLY(time_t result =)
|
||||||
parsedate_etc(textControl->TextView()->Text(), -1, &flags);
|
parsedate_etc(textControl->TextView()->Text(), -1, &flags);
|
||||||
dynamicDate = (flags & PARSEDATE_RELATIVE_TIME) != 0;
|
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));
|
dynamicDate ? "" : "not ", result));
|
||||||
|
|
||||||
query->PushDate(textControl->TextView()->Text());
|
query->PushDate(textControl->TextView()->Text());
|
||||||
|
|||||||
@@ -1252,7 +1252,8 @@ Model::GetVersionString(BString &result, version_kind kind)
|
|||||||
void
|
void
|
||||||
Model::PrintToStream(int32 level, bool deep)
|
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**",
|
Name() ? Name() : "**empty name**",
|
||||||
EntryRef()->name ? EntryRef()->name : "**empty ref name**",
|
EntryRef()->name ? EntryRef()->name : "**empty ref name**",
|
||||||
NodeRef()->node,
|
NodeRef()->node,
|
||||||
@@ -1344,7 +1345,8 @@ Model::PrintToStream(int32 level, bool deep)
|
|||||||
if (IsNodeOpen()) {
|
if (IsNodeOpen()) {
|
||||||
node_ref nodeRef;
|
node_ref nodeRef;
|
||||||
fNode->GetNodeRef(&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()) {
|
if (deep && IsSymLink()) {
|
||||||
|
|||||||
@@ -1499,7 +1499,7 @@ status_t
|
|||||||
TTracker::NeedMoreNodeMonitors()
|
TTracker::NeedMoreNodeMonitors()
|
||||||
{
|
{
|
||||||
fNodeMonitorCount += kNodeMonitorBumpValue;
|
fNodeMonitorCount += kNodeMonitorBumpValue;
|
||||||
PRINT(("bumping nodeMonitorCount to %d\n", fNodeMonitorCount));
|
PRINT(("bumping nodeMonitorCount to %" B_PRId32 "\n", fNodeMonitorCount));
|
||||||
|
|
||||||
struct rlimit rl;
|
struct rlimit rl;
|
||||||
rl.rlim_cur = fNodeMonitorCount;
|
rl.rlim_cur = fNodeMonitorCount;
|
||||||
|
|||||||
@@ -1074,7 +1074,8 @@ StringFromStream(BString *string, BMallocIO *stream, bool endianSwap)
|
|||||||
|
|
||||||
if (length < 0 || length > 10000) {
|
if (length < 0 || length > 10000) {
|
||||||
// TODO: should fail here
|
// 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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1637,7 +1638,7 @@ void
|
|||||||
_ThrowOnError(status_t error, const char *DEBUG_ONLY(file), int32 DEBUG_ONLY(line))
|
_ThrowOnError(status_t error, const char *DEBUG_ONLY(file), int32 DEBUG_ONLY(line))
|
||||||
{
|
{
|
||||||
if (error != B_OK) {
|
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;
|
throw error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1647,7 +1648,7 @@ void
|
|||||||
_ThrowIfNotSize(ssize_t size, const char *DEBUG_ONLY(file), int32 DEBUG_ONLY(line))
|
_ThrowIfNotSize(ssize_t size, const char *DEBUG_ONLY(file), int32 DEBUG_ONLY(line))
|
||||||
{
|
{
|
||||||
if (size < B_OK) {
|
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;
|
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))
|
const char *DEBUG_ONLY(file), int32 DEBUG_ONLY(line))
|
||||||
{
|
{
|
||||||
if (error != B_OK) {
|
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;
|
throw error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -493,8 +493,9 @@ BViewState::_Sanitize(BViewState *state, bool fixOnly)
|
|||||||
&& state->fLastIconMode != kIconMode
|
&& state->fLastIconMode != kIconMode
|
||||||
&& state->fLastIconMode != kMiniIconMode
|
&& state->fLastIconMode != kMiniIconMode
|
||||||
&& state->fLastIconMode != 0)) {
|
&& state->fLastIconMode != 0)) {
|
||||||
PRINT(("Bad data instantiating ViewState, view mode %x, lastIconMode %x\n",
|
PRINT(("Bad data instantiating ViewState, view mode %" B_PRIx32
|
||||||
state->fViewMode, state->fLastIconMode));
|
", lastIconMode %" B_PRIx32 "\n", state->fViewMode,
|
||||||
|
state->fLastIconMode));
|
||||||
|
|
||||||
delete state;
|
delete state;
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user