]> git.dujemihanovic.xyz Git - u-boot.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)
committerSimon Glass <sjg@chromium.org>
Wed, 6 May 2015 02:58:18 +0000 (20:58 -0600)
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;
 }