Skip to content

Commit da1a56a

Browse files
author
Benjamin Berg
committed
context: Log version number at startup
Having this should at least give us a slightly better idea about the version that the user has installed. Obviously it is still not very accurate (maybe a git hash would be good if available?), but it should still be helpful overall.
1 parent 2b760df commit da1a56a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

libfprint/fp-context.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,8 @@ fp_context_init (FpContext *self)
361361
FpContextPrivate *priv = fp_context_get_instance_private (self);
362362
guint i;
363363

364+
g_debug ("Initializing FpContext (libfprint version " LIBFPRINT_VERSION ")");
365+
364366
priv->drivers = fpi_get_driver_types ();
365367

366368
if (get_drivers_whitelist_env ())

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ project('libfprint', [ 'c', 'cpp' ],
1111
gnome = import('gnome')
1212

1313
libfprint_conf = configuration_data()
14+
libfprint_conf.set_quoted('LIBFPRINT_VERSION', meson.project_version())
1415

1516
cc = meson.get_compiler('c')
1617
cpp = meson.get_compiler('cpp')

0 commit comments

Comments
 (0)