aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Schink <openocd-dev@marcschink.de>2016-11-18 17:27:16 +0100
committerPaul Fertser <fercerpav@gmail.com>2016-12-08 13:33:57 +0000
commit082b88bc8ae5ba71b06a6c7e6e1ce1d26657dbb5 (patch)
tree3e150cbf944e8c854cd369c0657f22c839a76ac6
parenta2942c95c818f98a0f8605449a17b0a794ef9a50 (diff)
jlink: Output libjaylink version
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>
-rw-r--r--src/jtag/drivers/jlink.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jtag/drivers/jlink.c b/src/jtag/drivers/jlink.c
index 65ff81aa..bd3c5e03 100644
--- a/src/jtag/drivers/jlink.c
+++ b/src/jtag/drivers/jlink.c
@@ -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) {