]> git.sur5r.net Git - openocd/commitdiff
jlink: Output libjaylink version
authorMarc Schink <openocd-dev@marcschink.de>
Fri, 18 Nov 2016 16:27:16 +0000 (17:27 +0100)
committerPaul Fertser <fercerpav@gmail.com>
Thu, 8 Dec 2016 13:33:57 +0000 (13:33 +0000)
Output the package version of libjaylink to ease debugging.

Change-Id: I3b9da6d046d140ba850056c98e67bed22c885ee0
Signed-off-by: Marc Schink <openocd-dev@marcschink.de>
Reviewed-on: http://openocd.zylin.com/3887
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
src/jtag/drivers/jlink.c

index 65ff81aa1ea601c20e46389cf7852a6e06f0807f..bd3c5e03cd0a14656df58c2abcdc7d0b6b50b9ca 100644 (file)
@@ -545,6 +545,9 @@ static int jlink_init(void)
        enum jaylink_usb_address address;
        size_t length;
 
+       LOG_DEBUG("Using libjaylink %s (compiled with %s).",
+               jaylink_version_package_get_string(), JAYLINK_VERSION_PACKAGE_STRING);
+
        ret = jaylink_init(&jayctx);
 
        if (ret != JAYLINK_OK) {