Skip to content

Commit 50e1915

Browse files
Shuotian Chenglguohan
authored andcommitted
[misc]: Fix typos (sonic-net#342)
1 parent 2322375 commit 50e1915

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

syncd/syncd.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ sai_status_t handle_generic(
11851185
/*
11861186
* When we creating switch, then switch_id parameter is
11871187
* ignored, but we can't convert it using vid to rid map,
1188-
* since rid don't exist yet, so skip translate for switch,
1188+
* since rid doesn't exist yet, so skip translate for switch,
11891189
* but use translate for all other objects.
11901190
*/
11911191

@@ -1997,7 +1997,7 @@ void on_switch_create_in_init_view(
19971997
if (attr == NULL)
19981998
{
19991999
/*
2000-
* This is ok, attribute don't exists, so assumption is empty string.
2000+
* This is ok, attribute doesn't exist, so assumption is empty string.
20012001
*/
20022002
}
20032003
else

syncd/syncd_applyview.cpp

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ class AsicView
636636

637637
if (it == m_vidReference.end())
638638
{
639-
SWSS_LOG_THROW("vid %s don't exist in reference map",
639+
SWSS_LOG_THROW("vid %s doesn't exist in reference map",
640640
sai_serialize_object_id(vid).c_str());
641641
}
642642

@@ -740,7 +740,7 @@ class AsicView
740740

741741
if (it == m_vidReference.end())
742742
{
743-
SWSS_LOG_THROW("vid %s don't exist in reference map",
743+
SWSS_LOG_THROW("vid %s doesn't exist in reference map",
744744
sai_serialize_object_id(vid).c_str());
745745
}
746746

@@ -779,7 +779,7 @@ class AsicView
779779
* @brief Insert new VID reference.
780780
*
781781
* Inserts new reference to be tracked. This also make sure that
782-
* reference don't exists yet, as a sanity check if same reference
782+
* reference doesn't exist yet, as a sanity check if same reference
783783
* would be inserted twice.
784784
*
785785
* @param[in] vid Virtual ID reference to be inserted.
@@ -1725,7 +1725,7 @@ void checkMatchedPorts(
17251725
*
17261726
* In case of really long list, easier way to solve this can be getting all the
17271727
* RIDs from current view (they must exist), getting all the matched RIDs from
1728-
* temporary list (if one of them don't exists then lists are not equal) sort
1728+
* temporary list (if one of them doesn't exist then lists are not equal) sort
17291729
* both list nlog(n) and then compare sequentially.
17301730
*
17311731
* @param currentView Current view.
@@ -1814,13 +1814,13 @@ bool hasEqualObjectList(
18141814
if (temporaryIt == temporaryView.vidToRid.end())
18151815
{
18161816
/*
1817-
* Temporary RID don't exist yet for this object, so it mean's
1817+
* Temporary RID doesn't exist yet for this object, so it means
18181818
* this object will be created in the future after all
18191819
* comparison logic finishes.
18201820
*
18211821
* Here we know that this temporary object is not processed yet
18221822
* but during recursive processing we know that this OID value
1823-
* was already processed, and two things could happened:
1823+
* was already processed, and two things could happen:
18241824
*
18251825
* - we matched existing current object for this VID and actual
18261826
* RID was assigned, or
@@ -1829,7 +1829,7 @@ bool hasEqualObjectList(
18291829
* not assigned, and this object will be created later on
18301830
* which will assign new RID
18311831
*
1832-
* Since we are here where RID don't exist this is the second
1832+
* Since we are here where RID doesn't exist this is the second
18331833
* case, also we know that current object VID exists so his RID
18341834
* also exists, so those RID's can't be equal, we need return
18351835
* false here.
@@ -1839,7 +1839,7 @@ bool hasEqualObjectList(
18391839
* needs to be created.
18401840
*/
18411841

1842-
SWSS_LOG_INFO("temporary RID don't exists (VID %s), attributes are not equal",
1842+
SWSS_LOG_INFO("temporary RID doesn't exist (VID %s), attributes are not equal",
18431843
sai_serialize_object_id(temporaryVid).c_str());
18441844

18451845
return false;
@@ -2374,15 +2374,15 @@ std::shared_ptr<SaiObj> findCurrentBestMatchForGenericObject(
23742374
* attributes are existing and both are equal, so here it
23752375
* returned false, so it may mean 2 things:
23762376
*
2377-
* - attribute don't exists in current view, or
2377+
* - attribute doesn't exist in current view, or
23782378
* - attributes are different
23792379
*
23802380
* If we check if attribute also exists in current view and has
23812381
* CREATE_ONLY flag then attributes are different and we
23822382
* disqualify this object since new temporary object needs to
23832383
* pass new different attribute with CREATE_ONLY flag.
23842384
*
2385-
* Case when attribute don't exists is much more complicated
2385+
* Case when attribute doesn't exist is much more complicated
23862386
* since it maybe conditional and have default value, we will
23872387
* do that check when we select best match.
23882388
*/
@@ -2567,7 +2567,7 @@ bool exchangeTemporaryVidToCurrentVid(
25672567
* This is just sanity check, should never happen.
25682568
*/
25692569

2570-
SWSS_LOG_THROW("found tempoary RID %s but current VID don't exists, FATAL",
2570+
SWSS_LOG_THROW("found tempoary RID %s but current VID doesn't exist, FATAL",
25712571
sai_serialize_object_id(temporaryRid).c_str());
25722572
}
25732573

@@ -2597,7 +2597,7 @@ bool exchangeTemporaryVidToCurrentVid(
25972597
* struct and do dictionary lookup on serialized neighbor_entry.
25982598
*
25992599
* With this approach for many entries this is the quickest possible way. In
2600-
* case when RID don't exist, that means we have invalid neighbor entry, so we
2600+
* case when RID doesn't exist, that means we have invalid neighbor entry, so we
26012601
* must return null.
26022602
*
26032603
* @param currentView Current view.
@@ -2680,7 +2680,7 @@ std::shared_ptr<SaiObj> findCurrentBestMatchForNeighborEntry(
26802680
* and do dictionary lookup on serialized route_entry.
26812681
*
26822682
* With this approach for many entries this is the quickest possible way. In
2683-
* case when RID don't exist, that means we have invalid route entry, so we
2683+
* case when RID doesn't exist, that means we have invalid route entry, so we
26842684
* must return null.
26852685
*
26862686
* @param currentView Current view.
@@ -2761,7 +2761,7 @@ std::shared_ptr<SaiObj> findCurrentBestMatchForRouteEntry(
27612761
* lookup on serialized fdb_entry.
27622762
*
27632763
* With this approach for many entries this is the quickest possible way. In
2764-
* case when RID don't exist, that means we have invalid fdb entry, so we must
2764+
* case when RID doesn't exist, that means we have invalid fdb entry, so we must
27652765
* return null.
27662766
*
27672767
* @param currentView Current view.
@@ -3230,7 +3230,7 @@ sai_object_id_t translateTemporaryVidToCurrentVid(
32303230

32313231
/*
32323232
* This method is used to translate temporary VID to current VID using RID
3233-
* which should be present in both views. If RID don't exist, then we
3233+
* which should be present in both views. If RID doesn't exist, then we
32343234
* check whether object was created if so, then we return temporary VID
32353235
* instead of creating new current VID and we don't need to track mapping
32363236
* of those vids not having actual RID. This function should be used only
@@ -3496,7 +3496,7 @@ void createNewObjectFromTemporaryObject(
34963496
* trap group to asic view, so if user will query default one, they will be
34973497
* matched by RID.
34983498
*
3499-
* Default trap group is transferred to view on init if it don't exist.
3499+
* Default trap group is transferred to view on init if it doesn't exist.
35003500
*
35013501
* There should be no such action here, since this scenario would mean that
35023502
* there is default switch object in temporary view, but not in current
@@ -3703,7 +3703,7 @@ void UpdateObjectStatus(
37033703
temporaryView.vidToRid[tvid] = rid;
37043704

37053705
/*
3706-
* TODO: Set new VID if it don't exist in current view with NULL RID
3706+
* TODO: Set new VID if it doesn't exist in current view with NULL RID
37073707
* that will mean we created new object, this VID will be later
37083708
* used to count references and as a sanity check if we are
37093709
* increasing valid reference.
@@ -3895,7 +3895,7 @@ std::shared_ptr<SaiAttr> getSaiAttrFromDefaultValue(
38953895

38963896
if (tg == currentView.ridToVid.end())
38973897
{
3898-
SWSS_LOG_THROW("default trap group RID 0x%lx don't exist in current view", currentView.defaultTrapGroupRid);
3898+
SWSS_LOG_THROW("default trap group RID 0x%lx doesn't exist in current view", currentView.defaultTrapGroupRid);
38993899
}
39003900

39013901
sai_attribute_t at;

vslib/src/sai_vs_switch_MLNX2700.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ void uninit_switch_MLNX2700(
833833

834834
if (g_switch_state_map.find(switch_id) == g_switch_state_map.end())
835835
{
836-
SWSS_LOG_THROW("switch don't exists 0x%lx", switch_id);
836+
SWSS_LOG_THROW("switch doesn't exist 0x%lx", switch_id);
837837
}
838838

839839
SWSS_LOG_NOTICE("remove switch 0x%lx", switch_id);

0 commit comments

Comments
 (0)