diff --git a/pkg/kubelet/cm/topologymanager/socketmask/socketmask.go b/pkg/kubelet/cm/topologymanager/socketmask/socketmask.go index 0c0a213d65b..c6f483932df 100644 --- a/pkg/kubelet/cm/topologymanager/socketmask/socketmask.go +++ b/pkg/kubelet/cm/topologymanager/socketmask/socketmask.go @@ -38,7 +38,7 @@ func (sm SocketMask) GetSocketMask(socketMaskInt64 [][]int64, maskHolder []strin maskHolder = buildMaskHolder(socketMaskInt64) } klog.V(4).Infof("[socketmask] MaskHolder : %v", maskHolder) - klog.V(4).Infof("[socketmask] %v is passed into arrange function", socketMask) + klog.V(4).Infof("[socketmask] %v is passed into arrange function", socketMaskInt64) arrangedMask := arrangeMask(socketMaskInt64) newMask := getTopologyAffinity(arrangedMask, maskHolder) klog.V(4).Infof("[socketmask] New Mask after getTopologyAffinity (new mask) : %v ", newMask) diff --git a/pkg/kubelet/cm/topologymanager/socketmask/socketmask_test.go b/pkg/kubelet/cm/topologymanager/socketmask/socketmask_test.go index 69a1efedf9e..624221a931a 100644 --- a/pkg/kubelet/cm/topologymanager/socketmask/socketmask_test.go +++ b/pkg/kubelet/cm/topologymanager/socketmask/socketmask_test.go @@ -24,7 +24,7 @@ import ( func TestGetSocketmask(t *testing.T) { tcases := []struct { name string - socketmask []SocketMask + socketmask [][]int64 maskholder []string count int expectedMaskHolder []string @@ -32,7 +32,7 @@ func TestGetSocketmask(t *testing.T) { }{ { name: "Empty MaskHolder and count set as 0", - socketmask: []SocketMask{{1, 0}, {0, 1}, {1, 1}}, + socketmask: [][]int64{{1, 0}, {0, 1}, {1, 1}}, maskholder: []string{""}, count: 0, expectedMaskHolder: []string{"10", "01", "11"}, @@ -40,7 +40,7 @@ func TestGetSocketmask(t *testing.T) { }, { name: "MaskHolder non zero, count set as 1", - socketmask: []SocketMask{{1, 0}, {0, 1}, {1, 1}}, + socketmask: [][]int64{{1, 0}, {0, 1}, {1, 1}}, maskholder: []string{"10", "01", "11"}, count: 1, expectedMaskHolder: []string{"10", "01", "11"}, @@ -49,7 +49,7 @@ func TestGetSocketmask(t *testing.T) { { name: "Empty MaskHolder and count set as 0", - socketmask: []SocketMask{{0, 1}, {1, 1}}, + socketmask: [][]int64{{0, 1}, {1, 1}}, maskholder: []string{""}, count: 0, expectedMaskHolder: []string{"01", "11"}, @@ -57,7 +57,7 @@ func TestGetSocketmask(t *testing.T) { }, { name: "MaskHolder non zero, count set as 1", - socketmask: []SocketMask{{0, 1}, {1, 1}}, + socketmask: [][]int64{{0, 1}, {1, 1}}, maskholder: []string{"01", "11"}, count: 1, expectedMaskHolder: []string{"01", "11"},