Code Review
/
govpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add various generator improvements
[govpp.git]
/
cmd
/
binapi-generator
/
types.go
diff --git
a/cmd/binapi-generator/types.go
b/cmd/binapi-generator/types.go
index
d056251
..
90c890f
100644
(file)
--- a/
cmd/binapi-generator/types.go
+++ b/
cmd/binapi-generator/types.go
@@
-18,6
+18,8
@@
import (
"fmt"
"strconv"
"strings"
"fmt"
"strconv"
"strings"
+
+ "github.com/sirupsen/logrus"
)
// toApiType returns name that is used as type reference in VPP binary API
)
// toApiType returns name that is used as type reference in VPP binary API
@@
-62,7
+64,7
@@
func convertToGoType(ctx *context, binapiType string) (typ string) {
typ = binapiType
default:
// fallback type
typ = binapiType
default:
// fallback type
- log.Warnf("found unknown VPP binary API type %q, using byte", binapiType)
+ log
rus
.Warnf("found unknown VPP binary API type %q, using byte", binapiType)
typ = "byte"
}
}
typ = "byte"
}
}