diff --git a/src/kits/tracker/DeskWindow.cpp b/src/kits/tracker/DeskWindow.cpp index f45f3c3790..2df4aba3da 100644 --- a/src/kits/tracker/DeskWindow.cpp +++ b/src/kits/tracker/DeskWindow.cpp @@ -195,7 +195,7 @@ BDeskWindow::MenusBeginning() // remove all current addon shortcuts for (std::set::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); } diff --git a/src/kits/tracker/FSUtils.cpp b/src/kits/tracker/FSUtils.cpp index b16d141126..98a26cfcb8 100644 --- a/src/kits/tracker/FSUtils.cpp +++ b/src/kits/tracker/FSUtils.cpp @@ -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; } diff --git a/src/kits/tracker/FindPanel.cpp b/src/kits/tracker/FindPanel.cpp index 9e5cbce2c7..85a1dfe85a 100644 --- a/src/kits/tracker/FindPanel.cpp +++ b/src/kits/tracker/FindPanel.cpp @@ -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()); diff --git a/src/kits/tracker/Model.cpp b/src/kits/tracker/Model.cpp index 41f428761f..a7f97cd9dd 100644 --- a/src/kits/tracker/Model.cpp +++ b/src/kits/tracker/Model.cpp @@ -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()) { diff --git a/src/kits/tracker/Tracker.cpp b/src/kits/tracker/Tracker.cpp index dad90a1480..81b3956c6d 100644 --- a/src/kits/tracker/Tracker.cpp +++ b/src/kits/tracker/Tracker.cpp @@ -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; diff --git a/src/kits/tracker/Utilities.cpp b/src/kits/tracker/Utilities.cpp index 80b5bfc9f9..c02c4c1aa0 100644 --- a/src/kits/tracker/Utilities.cpp +++ b/src/kits/tracker/Utilities.cpp @@ -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; } } diff --git a/src/kits/tracker/ViewState.cpp b/src/kits/tracker/ViewState.cpp index c8a87bb350..20fc4d5aae 100644 --- a/src/kits/tracker/ViewState.cpp +++ b/src/kits/tracker/ViewState.cpp @@ -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;