* Disabled excessive debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34076 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f907fa59c3
commit
7162a69600
@ -1863,7 +1863,6 @@ TRoster::_LoadRosterSettings(const char* path)
|
|||||||
status_t streamError;
|
status_t streamError;
|
||||||
char str[B_PATH_NAME_LENGTH];
|
char str[B_PATH_NAME_LENGTH];
|
||||||
|
|
||||||
|
|
||||||
// (RecentDoc | RecentFolder | RecentApp)
|
// (RecentDoc | RecentFolder | RecentApp)
|
||||||
streamError = stream.GetString(str);
|
streamError = stream.GetString(str);
|
||||||
if (!streamError) {
|
if (!streamError) {
|
||||||
@ -1874,15 +1873,14 @@ TRoster::_LoadRosterSettings(const char* path)
|
|||||||
etSomethingIsAmiss,
|
etSomethingIsAmiss,
|
||||||
} type;
|
} type;
|
||||||
|
|
||||||
if (strcmp(str, "RecentDoc") == 0) {
|
if (strcmp(str, "RecentDoc") == 0)
|
||||||
type = etDoc;
|
type = etDoc;
|
||||||
} else if (strcmp(str, "RecentFolder") == 0) {
|
else if (strcmp(str, "RecentFolder") == 0)
|
||||||
type = etFolder;
|
type = etFolder;
|
||||||
} else if (strcmp(str, "RecentApp") == 0) {
|
else if (strcmp(str, "RecentApp") == 0)
|
||||||
type = etApp;
|
type = etApp;
|
||||||
} else {
|
else
|
||||||
type = etSomethingIsAmiss;
|
type = etSomethingIsAmiss;
|
||||||
}
|
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case etDoc:
|
case etDoc:
|
||||||
@ -1925,17 +1923,20 @@ TRoster::_LoadRosterSettings(const char* path)
|
|||||||
streamError = entry ? B_OK : B_NO_MEMORY;
|
streamError = entry ? B_OK : B_NO_MEMORY;
|
||||||
}
|
}
|
||||||
if (!streamError) {
|
if (!streamError) {
|
||||||
printf("pushing entry, leaf == '%s', app == '%s', index == %ld\n",
|
D(printf("pushing entry, leaf == '%s', app == "
|
||||||
entry->ref.name, entry->sig.c_str(), entry->index);
|
"'%s', index == %ld\n", entry->ref.name,
|
||||||
|
entry->sig.c_str(), entry->index));
|
||||||
|
|
||||||
list->push_back(entry);
|
list->push_back(entry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (streamError) {
|
if (streamError) {
|
||||||
printf("entry error 0x%lx\n", streamError);
|
D(printf("entry error 0x%lx\n", streamError));
|
||||||
if (streamError != RosterSettingsCharStream::kEndOfLine
|
if (streamError
|
||||||
&& streamError != RosterSettingsCharStream::kEndOfStream)
|
!= RosterSettingsCharStream::kEndOfLine
|
||||||
|
&& streamError
|
||||||
|
!= RosterSettingsCharStream::kEndOfStream)
|
||||||
stream.SkipLine();
|
stream.SkipLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1972,6 +1973,7 @@ TRoster::_LoadRosterSettings(const char* path)
|
|||||||
fRecentDocuments.fEntryList.sort(larger_index);
|
fRecentDocuments.fEntryList.sort(larger_index);
|
||||||
fRecentFolders.fEntryList.sort(larger_index);
|
fRecentFolders.fEntryList.sort(larger_index);
|
||||||
|
|
||||||
|
D(
|
||||||
printf("----------------------------------------------------------------------\n");
|
printf("----------------------------------------------------------------------\n");
|
||||||
fRecentDocuments.Print();
|
fRecentDocuments.Print();
|
||||||
printf("----------------------------------------------------------------------\n");
|
printf("----------------------------------------------------------------------\n");
|
||||||
@ -1979,6 +1981,7 @@ TRoster::_LoadRosterSettings(const char* path)
|
|||||||
printf("----------------------------------------------------------------------\n");
|
printf("----------------------------------------------------------------------\n");
|
||||||
fRecentApps.Print();
|
fRecentApps.Print();
|
||||||
printf("----------------------------------------------------------------------\n");
|
printf("----------------------------------------------------------------------\n");
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (error) {
|
if (error) {
|
||||||
D(PRINT(("WARNING: TRoster::_LoadRosterSettings(): error loading roster "
|
D(PRINT(("WARNING: TRoster::_LoadRosterSettings(): error loading roster "
|
||||||
|
Loading…
Reference in New Issue
Block a user