Add formated loging for device detection

Commits merged and amended for code style by Adam Honse <calcprogrammer1@gmail.com>
This commit is contained in:
Alex 2021-06-16 04:26:15 +02:00 committed by Adam Honse
parent 5a7879415f
commit 4af8614fce
19 changed files with 213 additions and 111 deletions

View file

@ -359,7 +359,7 @@ bool ProfileManager::LoadProfileWithOptions
{
ret_val = LoadDeviceFromListWithOptions(temp_controllers, temp_controller_used, controllers[controller_index], load_size, load_settings);
std::string current_name = controllers[controller_index]->name + " @ " + controllers[controller_index]->location;
LOG_NOTICE("Profile loading: %s for %s", ( ret_val ? "Succeeded" : "FAILED!" ), current_name.c_str());
LOG_INFO("Profile loading: %s for %s", ( ret_val ? "Succeeded" : "FAILED!" ), current_name.c_str());
}
/*---------------------------------------------------------*\
@ -393,7 +393,7 @@ void ProfileManager::UpdateProfileList()
if(filename.find(".orp") != std::string::npos)
{
LOG_NOTICE("Found file: %s attempting to validate header", filename.c_str());
LOG_INFO("Found file: %s attempting to validate header", filename.c_str());
/*---------------------------------------------------------*\
| Open input file in binary mode |
@ -419,7 +419,7 @@ void ProfileManager::UpdateProfileList()
filename.erase(filename.length() - 4);
profile_list.push_back(filename);
LOG_NOTICE("Valid v%i profile found for %s", profile_version, filename.c_str());
LOG_INFO("Valid v%i profile found for %s", profile_version, filename.c_str());
}
}