Skip to content

Commit

Permalink
[meta] Fix spelling (opencomputeproject#1906)
Browse files Browse the repository at this point in the history
Fix spelling
  • Loading branch information
kcudnik authored Sep 26, 2023
1 parent af31a8f commit 683d727
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions meta/parse.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2503,7 +2503,7 @@ sub CreateMetadataForAttributes

if (not $ot =~ /^SAI_OBJECT_TYPE_(\w+)$/)
{
LogError "invalid obejct type '$ot'";
LogError "invalid object type '$ot'";
next;
}

Expand Down Expand Up @@ -2538,7 +2538,7 @@ sub CreateMetadataForAttributes
{
if (not $ot =~ /^SAI_OBJECT_TYPE_(\w+)$/)
{
LogError "invalid obejct type '$ot'";
LogError "invalid object type '$ot'";
next;
}

Expand Down Expand Up @@ -2928,7 +2928,7 @@ sub CreateStructNonObjectId
{
if (not $ot =~ /^SAI_OBJECT_TYPE_(\w+)$/)
{
LogError "invalid obejct type '$ot'";
LogError "invalid object type '$ot'";
next;
}

Expand Down Expand Up @@ -3325,7 +3325,7 @@ sub ProcessGenericQuadApi
{
if (not $ot =~ /^SAI_OBJECT_TYPE_(\w+)$/)
{
LogError "invalid obejct type '$ot'";
LogError "invalid object type '$ot'";
next;
}

Expand Down Expand Up @@ -3467,7 +3467,7 @@ sub ProcessGenericStatsApi
{
if (not $ot =~ /^SAI_OBJECT_TYPE_(\w+)$/)
{
LogError "invalid obejct type '$ot'";
LogError "invalid object type '$ot'";
next;
}

Expand Down Expand Up @@ -3590,7 +3590,7 @@ sub ProcessGenericQuadBulkApi
{
if (not $ot =~ /^SAI_OBJECT_TYPE_(\w+)$/)
{
LogError "invalid obejct type '$ot'";
LogError "invalid object type '$ot'";
next;
}

Expand Down Expand Up @@ -3915,7 +3915,7 @@ sub CreateObjectInfo
{
if (not $ot =~ /^SAI_OBJECT_TYPE_(\w+)$/)
{
LogError "invalid obejct type '$ot'";
LogError "invalid object type '$ot'";
next;
}

Expand Down Expand Up @@ -4002,7 +4002,7 @@ sub CreateObjectInfo
{
if (not $ot =~ /^SAI_OBJECT_TYPE_(\w+)$/)
{
LogError "invalid obejct type '$ot'";
LogError "invalid object type '$ot'";
next;
}

Expand Down Expand Up @@ -4369,7 +4369,7 @@ sub CheckObjectTypeStatitics
{
#
# Purpose is to check if each defined statistics for object type has 3 stat
# functions defined and if there is corresponding obejct type for stat enum
# functions defined and if there is corresponding object type for stat enum
#

for my $ot (sort keys %OBJECT_TYPE_TO_STATS_MAP)
Expand Down Expand Up @@ -4546,7 +4546,7 @@ sub GetReverseDependencyGraph
{
if (not $ot =~ /^SAI_OBJECT_TYPE_(\w+)$/)
{
LogError "invalid obejct type '$ot'";
LogError "invalid object type '$ot'";
next;
}

Expand Down
2 changes: 1 addition & 1 deletion meta/serialize.pm
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ sub GetTypeInfoForSerialize

if (scalar@ot != 1)
{
LogWarning "expected only 1 obejct type, but given '@ot'";
LogWarning "expected only 1 object type, but given '@ot'";
return undef;
}

Expand Down
4 changes: 2 additions & 2 deletions meta/test.pm
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ sub CreateApiNameTest

if (IsSpecialObject($ot))
{
# those obejcts are special, just attributes, no APIs
# those objects are special, just attributes, no APIs
WriteTest " checked[(int)$ot] = $ot;";
next;
}
Expand Down Expand Up @@ -335,7 +335,7 @@ sub CreateApiNameTest
WriteTest " printf(\"checking: %s checked (%d) == index (%d)\\n\",";
WriteTest " sai_metadata_enum_sai_object_type_t.valuesnames[index],";
WriteTest " checked[index],(sai_object_type_t)index);";
WriteTest " TEST_ASSERT_TRUE(checked[index] == (sai_object_type_t)index, \"not all obejcts were processed\");";
WriteTest " TEST_ASSERT_TRUE(checked[index] == (sai_object_type_t)index, \"not all objects were processed\");";
WriteTest " }";

WriteTest " PP(dummy);";
Expand Down

0 comments on commit 683d727

Please sign in to comment.