Skip to content

Commit

Permalink
Merge pull request #120 from jvasilevsky/InPortMatch-GoString
Browse files Browse the repository at this point in the history
Update InPortMatch GoString format
  • Loading branch information
jvasilevsky authored Feb 10, 2023
2 parents 0d290e0 + e9ce6cd commit 977d985
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,13 @@ jobs:
export GOPATH=/home/runner/work
export PATH=$PATH:$GOPATH/bin
mkdir $GOPATH/src $GOPATH/pkg $GOPATH/bin
go install honnef.co/go/tools/cmd/staticcheck@latest
go install honnef.co/go/tools/cmd/staticcheck@2020.2.1
NEW=$GOPATH/src/github.com/digitalocean/go-openvswitch
mkdir -p $NEW
cp -r ./* $NEW
cd $NEW
go mod download
go get golang.org/x/lint/golint
go get honnef.co/go/tools/cmd/staticcheck
go get -d ./...
echo "=========START LICENSE CHECK============"
./scripts/licensecheck.sh
Expand Down
2 changes: 1 addition & 1 deletion ovs/match.go
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ func (i *inPortMatch) MarshalText() ([]byte, error) {

// GoString implements Match.
func (i *inPortMatch) GoString() string {
return fmt.Sprintf("ovs.InPort(%q)", i.port)
return fmt.Sprintf("ovs.InPort(%d)", i.port)
}

// NeighborDiscoveryTarget matches packets with an IPv6 neighbor discovery target
Expand Down

0 comments on commit 977d985

Please sign in to comment.