Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 018cf41a authored by Serban Constantinescu's avatar Serban Constantinescu Committed by Elliott Hughes
Browse files

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: default avatarSerban Constantinescu <serban.constantinescu@arm.com>
parent 1e954441
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;
    }