mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
main: Turn messages in debug messages
Rather than filling the logs with mostly useless messages, print those as debug.
This commit is contained in:
20
src/device.c
20
src/device.c
@ -601,7 +601,7 @@ static void dev_open_cb(struct fp_dev *dev, int status, void *user_data)
|
|||||||
FprintDevicePrivate *priv = DEVICE_GET_PRIVATE(rdev);
|
FprintDevicePrivate *priv = DEVICE_GET_PRIVATE(rdev);
|
||||||
struct session_data *session = priv->session;
|
struct session_data *session = priv->session;
|
||||||
|
|
||||||
g_message("device %d claim status %d", priv->id, status);
|
g_debug("device %d claim status %d", priv->id, status);
|
||||||
|
|
||||||
if (status != 0) {
|
if (status != 0) {
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
@ -670,7 +670,7 @@ static void fprint_device_claim(FprintDevice *rdev,
|
|||||||
priv->username = user;
|
priv->username = user;
|
||||||
priv->sender = sender;
|
priv->sender = sender;
|
||||||
|
|
||||||
g_message ("user '%s' claiming the device: %d", priv->username, priv->id);
|
g_debug ("user '%s' claiming the device: %d", priv->username, priv->id);
|
||||||
|
|
||||||
priv->session = g_slice_new0(struct session_data);
|
priv->session = g_slice_new0(struct session_data);
|
||||||
priv->session->context_claim_device = context;
|
priv->session->context_claim_device = context;
|
||||||
@ -709,7 +709,7 @@ static void dev_close_cb(struct fp_dev *dev, void *user_data)
|
|||||||
g_free (priv->username);
|
g_free (priv->username);
|
||||||
priv->username = NULL;
|
priv->username = NULL;
|
||||||
|
|
||||||
g_message("released device %d", priv->id);
|
g_debug("released device %d", priv->id);
|
||||||
dbus_g_method_return(context);
|
dbus_g_method_return(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -751,7 +751,7 @@ static void verify_cb(struct fp_dev *dev, int r, struct fp_img *img,
|
|||||||
if (priv->action_done != FALSE)
|
if (priv->action_done != FALSE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
g_message("verify_cb: result %s (%d)", name, r);
|
g_debug("verify_cb: result %s (%d)", name, r);
|
||||||
|
|
||||||
if (r == FP_VERIFY_NO_MATCH || r == FP_VERIFY_MATCH || r < 0)
|
if (r == FP_VERIFY_NO_MATCH || r == FP_VERIFY_MATCH || r < 0)
|
||||||
priv->action_done = TRUE;
|
priv->action_done = TRUE;
|
||||||
@ -775,7 +775,7 @@ static void identify_cb(struct fp_dev *dev, int r,
|
|||||||
if (priv->action_done != FALSE)
|
if (priv->action_done != FALSE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
g_message("identify_cb: result %s (%d)", name, r);
|
g_debug("identify_cb: result %s (%d)", name, r);
|
||||||
|
|
||||||
if (r == FP_VERIFY_NO_MATCH || r == FP_VERIFY_MATCH || r < 0)
|
if (r == FP_VERIFY_NO_MATCH || r == FP_VERIFY_MATCH || r < 0)
|
||||||
priv->action_done = TRUE;
|
priv->action_done = TRUE;
|
||||||
@ -846,7 +846,7 @@ static void fprint_device_verify_start(FprintDevice *rdev,
|
|||||||
array = g_ptr_array_new ();
|
array = g_ptr_array_new ();
|
||||||
|
|
||||||
for (l = prints; l != NULL; l = l->next) {
|
for (l = prints; l != NULL; l = l->next) {
|
||||||
g_message ("adding finger %d to the gallery", GPOINTER_TO_INT (l->data));
|
g_debug ("adding finger %d to the gallery", GPOINTER_TO_INT (l->data));
|
||||||
r = store.print_data_load(priv->dev, GPOINTER_TO_INT (l->data),
|
r = store.print_data_load(priv->dev, GPOINTER_TO_INT (l->data),
|
||||||
&data, priv->username);
|
&data, priv->username);
|
||||||
if (r == 0)
|
if (r == 0)
|
||||||
@ -876,12 +876,12 @@ static void fprint_device_verify_start(FprintDevice *rdev,
|
|||||||
}
|
}
|
||||||
priv->current_action = ACTION_IDENTIFY;
|
priv->current_action = ACTION_IDENTIFY;
|
||||||
|
|
||||||
g_message ("start identification device %d", priv->id);
|
g_debug ("start identification device %d", priv->id);
|
||||||
r = fp_async_identify_start (priv->dev, gallery, identify_cb, rdev);
|
r = fp_async_identify_start (priv->dev, gallery, identify_cb, rdev);
|
||||||
} else {
|
} else {
|
||||||
priv->current_action = ACTION_VERIFY;
|
priv->current_action = ACTION_VERIFY;
|
||||||
|
|
||||||
g_message("start verification device %d finger %d", priv->id, finger_num);
|
g_debug("start verification device %d finger %d", priv->id, finger_num);
|
||||||
|
|
||||||
r = store.print_data_load(priv->dev, (enum fp_finger)finger_num,
|
r = store.print_data_load(priv->dev, (enum fp_finger)finger_num,
|
||||||
&data, priv->username);
|
&data, priv->username);
|
||||||
@ -1007,7 +1007,7 @@ static void enroll_stage_cb(struct fp_dev *dev, int result,
|
|||||||
if (priv->action_done != FALSE)
|
if (priv->action_done != FALSE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
g_message("enroll_stage_cb: result %d", result);
|
g_debug("enroll_stage_cb: result %d", result);
|
||||||
if (result == FP_ENROLL_COMPLETE) {
|
if (result == FP_ENROLL_COMPLETE) {
|
||||||
r = store.print_data_save(print, session->enroll_finger, priv->username);
|
r = store.print_data_save(print, session->enroll_finger, priv->username);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
@ -1066,7 +1066,7 @@ static void fprint_device_enroll_start(FprintDevice *rdev,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_message("start enrollment device %d finger %d", priv->id, finger_num);
|
g_debug("start enrollment device %d finger %d", priv->id, finger_num);
|
||||||
session->enroll_finger = finger_num;
|
session->enroll_finger = finger_num;
|
||||||
priv->action_done = FALSE;
|
priv->action_done = FALSE;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user