jlink: Output libjaylink version 87/3887/2
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 65ff81a..bd3c5e0 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) {