greybus: protocol: make protocol-lookup error message more informative
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 13 Oct 2015 17:10:28 +0000 (19:10 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 14 Oct 2015 19:08:50 +0000 (12:08 -0700)
commit9942fc8b14f21525622b85031b19c7ab5b16b339
treeb36a1d358521a6635e70bdf2d685799d98e4cffe
parentd4efa68803667ab9d3ff6786462d2702b89e58de
greybus: protocol: make protocol-lookup error message more informative

Make protocol lookup error more informative, by moving it to
gb_connection_bind_protocol and using dev_err.

Also make sure to use hex format for the protocol id as that is what is
used everywhere else.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/connection.c
drivers/staging/greybus/protocol.c