diff options
author | Serban Constantinescu <serban.constantinescu@arm.com> | 2014-02-19 15:34:02 +0000 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2015-04-03 17:02:48 -0700 |
commit | 018cf41a15a349fbe788b240d13afbb4e985481b (patch) | |
tree | d6db7ebc286f5d3e9e5a125f4ed1086afc9b6af7 | |
parent | 1e954441d22d0feb28caceee9fe14bc7729b7b90 (diff) | |
download | frameworks_native-018cf41a15a349fbe788b240d13afbb4e985481b.zip frameworks_native-018cf41a15a349fbe788b240d13afbb4e985481b.tar.gz frameworks_native-018cf41a15a349fbe788b240d13afbb4e985481b.tar.bz2 |
ServiceManager: Print kernel/userspace binder version
This patch adds extra logging for the binder version in case the userspace
and kernel versions differ.
Change-Id: I9859b29099726cfcfe5ca23d88ed2e101a06af1a
Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
-rw-r--r-- | cmds/servicemanager/binder.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmds/servicemanager/binder.c b/cmds/servicemanager/binder.c index d1ab05f..6eecee1 100644 --- a/cmds/servicemanager/binder.c +++ b/cmds/servicemanager/binder.c @@ -113,7 +113,9 @@ struct binder_state *binder_open(size_t mapsize) if ((ioctl(bs->fd, BINDER_VERSION, &vers) == -1) || (vers.protocol_version != BINDER_CURRENT_PROTOCOL_VERSION)) { - fprintf(stderr, "binder: driver version differs from user space\n"); + fprintf(stderr, + "binder: kernel driver version (%d) differs from user space version (%d)\n", + vers.protocol_version, BINDER_CURRENT_PROTOCOL_VERSION); goto fail_open; } |