DawnTest: Move the position of [selected] to be easier to spot.

The [selected] was on the second line of an adpater description in the
output of DawnTest which made it a bit difficult to find. Move it at the
end of the first line which is the adapter name.

Bug: None
Change-Id: I686b40588b03aac827c347510525f6c969b7180b
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116860
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
Corentin Wallez 2023-01-11 15:10:05 +00:00 committed by Dawn LUCI CQ
parent 7092786f31
commit edca14171e
1 changed files with 4 additions and 6 deletions

View File

@ -477,14 +477,12 @@ void DawnTestEnvironment::PrintTestConfigurationAndAdapterInfo(
<< properties.deviceID; << properties.deviceID;
// Preparing for outputting hex numbers // Preparing for outputting hex numbers
log << std::showbase << std::hex << std::setfill('0') << std::setw(4) log << std::showbase << std::hex << std::setfill('0') << std::setw(4) << " - \""
<< properties.adapterName << "\" - \"" << properties.driverDescription
<< " - \"" << properties.adapterName << "\" - \"" << properties.driverDescription << (properties.selected ? " [Selected]" : "") << "\"\n"
<< "\"\n"
<< " type: " << properties.AdapterTypeName() << " type: " << properties.AdapterTypeName()
<< ", backend: " << properties.ParamName() << "\n" << ", backend: " << properties.ParamName() << "\n"
<< " vendorId: 0x" << vendorId.str() << ", deviceId: 0x" << deviceId.str() << " vendorId: 0x" << vendorId.str() << ", deviceId: 0x" << deviceId.str() << "\n";
<< (properties.selected ? " [Selected]" : "") << "\n";
if (strlen(properties.vendorName) || strlen(properties.architecture)) { if (strlen(properties.vendorName) || strlen(properties.architecture)) {
log << " vendorName: " << properties.vendorName log << " vendorName: " << properties.vendorName