From: Martin Ling Date: Thu, 20 Sep 2018 20:12:28 +0000 (+0100) Subject: Don't reference SR_PACKAGE_VERSION_STRING directly in backend.c. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=942719b46c19c6a82011036f86db45e19371a748;p=libsigrok.git Don't reference SR_PACKAGE_VERSION_STRING directly in backend.c. Reporting build versus runtime versions makes sense for a client, but not inside the library itself. --- diff --git a/src/backend.c b/src/backend.c index ef5cd260..1fbba5c1 100644 --- a/src/backend.c +++ b/src/backend.c @@ -232,8 +232,7 @@ static void print_versions(void) char *str; const char *lib, *version; - sr_dbg("libsigrok %s/%s (rt: %s/%s).", - SR_PACKAGE_VERSION_STRING, SR_LIB_VERSION_STRING, + sr_dbg("libsigrok %s/%s.", sr_package_version_string_get(), sr_lib_version_string_get()); s = g_string_sized_new(200);