From 251ccef9bae4ad1ee65c4f5108841f300182ffa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Sun, 8 Nov 2020 02:15:33 +0100 Subject: [PATCH] fpi-device: Add debug information about the enrolled finger --- libfprint/fpi-device.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libfprint/fpi-device.c b/libfprint/fpi-device.c index 3649304..a1a6826 100644 --- a/libfprint/fpi-device.c +++ b/libfprint/fpi-device.c @@ -928,6 +928,7 @@ fpi_device_enroll_complete (FpDevice *device, FpPrint *print, GError *error) if (FP_IS_PRINT (print)) { FpiPrintType print_type; + g_autofree char *finger_str = NULL; g_object_get (print, "fpi-type", &print_type, NULL); if (print_type == FPI_PRINT_UNDEFINED) @@ -941,6 +942,9 @@ fpi_device_enroll_complete (FpDevice *device, FpPrint *print, GError *error) return; } + finger_str = g_enum_to_string (FP_TYPE_FINGER, fp_print_get_finger (print)); + g_debug ("Print for finger %s enrolled", finger_str); + fpi_device_return_task_in_idle (device, FP_DEVICE_TASK_RETURN_OBJECT, print); } else