]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
cros_ec: Show the protocol version in the debug message
authorSimon Glass <sjg@chromium.org>
Tue, 17 Feb 2015 22:29:36 +0000 (15:29 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:37:13 +0000 (22:37 +0200)
When starting up, show the protocol version that has been negotiated with
the EC.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/misc/cros_ec.c

index 982bac788d52b1b52948a525018a585bcb225d8c..4b6ac6a6c01f75d97db362c0a169654c7377dd35 100644 (file)
@@ -986,7 +986,8 @@ int cros_ec_register(struct udevice *dev)
        }
 
        /* Remember this device for use by the cros_ec command */
-       debug("Google Chrome EC CROS-EC driver ready, id '%s'\n", id);
+       debug("Google Chrome EC v%d CROS-EC driver ready, id '%s'\n",
+             cdev->protocol_version, id);
 
        return 0;
 }