Skip to content

Commit

Permalink
fix: Fix various typos.
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Aaltonen <[email protected]>
  • Loading branch information
tjaalton committed Apr 17, 2024
1 parent 9903009 commit 68b2fca
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ Usage: ocloc multi <file_name>
'-file <filename> -device <device_type> [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
Expand Down
4 changes: 2 additions & 2 deletions shared/offline_compiler/source/multi_command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ int MultiCommand::singleBuild(const std::vector<std::string> &args) {
if (retVal == OCLOC_SUCCESS) {
outputFile << getCurrentDirectoryOwn(outDirForBuilds) + outFileName;
} else {
outputFile << "Unsuccesful build";
outputFile << "Unsuccessful build";
}
outputFile << '\n';

Expand Down Expand Up @@ -167,7 +167,7 @@ Usage: ocloc multi <file_name>
'-file <filename> -device <device_type> [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
Expand Down
4 changes: 2 additions & 2 deletions shared/source/compiler_interface/linker.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019-2023 Intel Corporation
* Copyright (C) 2019-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions shared/source/compiler_interface/linker.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019-2023 Intel Corporation
* Copyright (C) 2019-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
Expand Down Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions shared/test/unit_test/compiler_interface/linker_tests.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019-2023 Intel Corporation
* Copyright (C) 2019-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
Expand Down Expand Up @@ -32,7 +32,7 @@
#include <string>

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));
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 68b2fca

Please sign in to comment.