mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
device: Fix debug statement string ordering and be more consistent
We were inverting the values in the `Authorization granted` message, so be consistent in the ordering we show the message.
This commit is contained in:
14
src/device.c
14
src/device.c
@ -2212,7 +2212,7 @@ handle_unauthorized_access (FprintDevice *rdev,
|
|||||||
|
|
||||||
g_assert (error);
|
g_assert (error);
|
||||||
|
|
||||||
g_warning ("Client %s not authorized to call method '%s' for device %s: %s",
|
g_warning ("Authorization denied to %s to call method '%s' for device '%s': %s",
|
||||||
g_dbus_method_invocation_get_sender (invocation),
|
g_dbus_method_invocation_get_sender (invocation),
|
||||||
g_dbus_method_invocation_get_method_name (invocation),
|
g_dbus_method_invocation_get_method_name (invocation),
|
||||||
fp_device_get_name (priv->dev),
|
fp_device_get_name (priv->dev),
|
||||||
@ -2238,9 +2238,9 @@ action_authorization_handler (GDBusInterfaceSkeleton *interface,
|
|||||||
|
|
||||||
method_name = g_dbus_method_invocation_get_method_name (invocation);
|
method_name = g_dbus_method_invocation_get_method_name (invocation);
|
||||||
|
|
||||||
g_debug ("Requesting device '%s' authorization for method %s from %s",
|
g_debug ("Requesting authorization from %s to call method '%s' for device '%s'",
|
||||||
fp_device_get_name (priv->dev), method_name,
|
g_dbus_method_invocation_get_sender (invocation), method_name,
|
||||||
g_dbus_method_invocation_get_sender (invocation));
|
fp_device_get_name (priv->dev));
|
||||||
|
|
||||||
if (g_str_equal (method_name, "Claim"))
|
if (g_str_equal (method_name, "Claim"))
|
||||||
needs_user_auth = TRUE;
|
needs_user_auth = TRUE;
|
||||||
@ -2268,10 +2268,10 @@ action_authorization_handler (GDBusInterfaceSkeleton *interface,
|
|||||||
&error))
|
&error))
|
||||||
return handle_unauthorized_access (rdev, invocation, error);
|
return handle_unauthorized_access (rdev, invocation, error);
|
||||||
|
|
||||||
g_debug ("Authorization granted to %s to call method '%s' for device %s!",
|
g_debug ("Authorization granted to %s to call method '%s' for device '%s'!",
|
||||||
fp_device_get_name (priv->dev),
|
g_dbus_method_invocation_get_sender (invocation),
|
||||||
g_dbus_method_invocation_get_method_name (invocation),
|
g_dbus_method_invocation_get_method_name (invocation),
|
||||||
g_dbus_method_invocation_get_sender (invocation));
|
fp_device_get_name (priv->dev));
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user