From 7ece6e40e450ceb6680f02c988b49aee13e49074 Mon Sep 17 00:00:00 2001 From: Timo Aaltonen Date: Wed, 17 Apr 2024 10:13:28 +0300 Subject: [PATCH] fix: Fix various typos. Signed-off-by: Timo Aaltonen --- .../unit_test/offline_compiler/offline_compiler_tests.cpp | 2 +- shared/offline_compiler/source/multi_command.cpp | 4 ++-- shared/source/compiler_interface/linker.cpp | 2 +- shared/source/compiler_interface/linker.h | 2 +- shared/test/unit_test/compiler_interface/linker_tests.cpp | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/opencl/test/unit_test/offline_compiler/offline_compiler_tests.cpp b/opencl/test/unit_test/offline_compiler/offline_compiler_tests.cpp index 0ba2e36218d29..ca7ef28a19b5d 100644 --- a/opencl/test/unit_test/offline_compiler/offline_compiler_tests.cpp +++ b/opencl/test/unit_test/offline_compiler/offline_compiler_tests.cpp @@ -387,7 +387,7 @@ Usage: ocloc multi '-file -device [compile_options]'. See 'ocloc compile --help' for available compile_options. Results of subsequent compilations will be dumped into - a directory with name indentical file_name's base name. + a directory with name identical file_name's base name. -output_file_list Name of optional file containing paths to outputs .bin files diff --git a/shared/offline_compiler/source/multi_command.cpp b/shared/offline_compiler/source/multi_command.cpp index 8482a72577eaa..c90c9b8919bb4 100644 --- a/shared/offline_compiler/source/multi_command.cpp +++ b/shared/offline_compiler/source/multi_command.cpp @@ -45,7 +45,7 @@ int MultiCommand::singleBuild(const std::vector &args) { if (retVal == OCLOC_SUCCESS) { outputFile << getCurrentDirectoryOwn(outDirForBuilds) + outFileName; } else { - outputFile << "Unsuccesful build"; + outputFile << "Unsuccessful build"; } outputFile << '\n'; @@ -167,7 +167,7 @@ Usage: ocloc multi '-file -device [compile_options]'. See 'ocloc compile --help' for available compile_options. Results of subsequent compilations will be dumped into - a directory with name indentical file_name's base name. + a directory with name identical file_name's base name. -output_file_list Name of optional file containing paths to outputs .bin files diff --git a/shared/source/compiler_interface/linker.cpp b/shared/source/compiler_interface/linker.cpp index 2356ff8dcee9f..a9b5a9fb0741c 100644 --- a/shared/source/compiler_interface/linker.cpp +++ b/shared/source/compiler_interface/linker.cpp @@ -567,7 +567,7 @@ std::string constructRelocationsDebugMessage(const Linker::RelocatedSymbolsMap & return ""; } std::stringstream stream; - stream << "Relocations debug informations :\n"; + stream << "Relocations debug information :\n"; for (const auto &symbol : relocatedSymbols) { stream << " * \"" << symbol.first << "\" [" << symbol.second.symbol.size << " bytes]"; stream << " " << asString(symbol.second.symbol.segment) << "_SEGMENT@" << symbol.second.symbol.offset; diff --git a/shared/source/compiler_interface/linker.h b/shared/source/compiler_interface/linker.h index c97bb3ecdd739..16a8e2c6e65f7 100644 --- a/shared/source/compiler_interface/linker.h +++ b/shared/source/compiler_interface/linker.h @@ -45,7 +45,7 @@ enum class LinkingStatus : uint32_t { inline const char *asString(SegmentType segment) { switch (segment) { default: - return "UNKOWN"; + return "UNKNOWN"; case SegmentType::globalConstants: return "GLOBAL_CONSTANTS"; case SegmentType::globalVariables: diff --git a/shared/test/unit_test/compiler_interface/linker_tests.cpp b/shared/test/unit_test/compiler_interface/linker_tests.cpp index 61be520447c3f..d91733f65cec3 100644 --- a/shared/test/unit_test/compiler_interface/linker_tests.cpp +++ b/shared/test/unit_test/compiler_interface/linker_tests.cpp @@ -32,7 +32,7 @@ #include TEST(SegmentTypeTests, givenSegmentTypeWhenAsStringIsCalledThenProperRepresentationIsReturned) { - EXPECT_STREQ("UNKOWN", NEO::asString(NEO::SegmentType::unknown)); + EXPECT_STREQ("UNKNOWN", NEO::asString(NEO::SegmentType::unknown)); EXPECT_STREQ("GLOBAL_CONSTANTS", NEO::asString(NEO::SegmentType::globalConstants)); EXPECT_STREQ("GLOBAL_VARIABLES", NEO::asString(NEO::SegmentType::globalVariables)); EXPECT_STREQ("INSTRUCTIONS", NEO::asString(NEO::SegmentType::instructions)); @@ -1763,7 +1763,7 @@ TEST(RelocationsDebugMessageTests, givenListOfRelocatedSymbolsThenReturnProperDe auto message = NEO::constructRelocationsDebugMessage(symbols); std::stringstream expected; - expected << "Relocations debug informations :\n"; + expected << "Relocations debug information :\n"; for (const auto &symbol : symbols) { if (symbol.first == "foo") { expected << " * \"foo\" [1024 bytes] INSTRUCTIONS_SEGMENT@64 -> 0x1000 GPUVA\n";