globalsign / mgo

The MongoDB driver for Go
Other
1.97k stars 232 forks source link

Fix debugf arguments #356

Closed eclipseo closed 5 years ago

eclipseo commented 5 years ago

Signed-off-by: Robert-André Mauchin zebob.m@gmail.com

Testing in: /builddir/build/BUILD/mgo-r2018.06.15/_build/src
      PATH: /builddir/build/BUILD/mgo-r2018.06.15/_build/bin:/builddir/.local/bin:/builddir/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin
    GOPATH: /builddir/build/BUILD/mgo-r2018.06.15/_build:/usr/share/gocode
   command: go test -buildmode pie -compiler gc -ldflags "-X github.com/globalsign/mgo/version=r2018.06.15 -X github.com/globalsign/mgo/version.tag=r2018.06.15 -extldflags '-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '"
   testing: github.com/globalsign/mgo
github.com/globalsign/mgo
# github.com/globalsign/mgo
./gridfs.go:681:2: debugf format %s has arg offset of wrong type int64
./session.go:3888:4: debugf call needs 1 arg but has 2 args
FAIL    github.com/globalsign/mgo [build failed]
eminano commented 5 years ago

Hi @eclipseo,

Thanks for your PR! Could you please target development instead of master?

Esther

eclipseo commented 5 years ago

This is already fixed in development apparently.