mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
pam: Use %d with errno instead of %m
Otherwise GCC warns sometimes, and it is easy enough to replace the use of %m.
This commit is contained in:
committed by
Benjamin Berg
parent
ec7376d7e6
commit
ebfcbdd13e
@ -217,7 +217,7 @@ verify_finger_selected (sd_bus_message *m,
|
|||||||
char *msg;
|
char *msg;
|
||||||
|
|
||||||
if (sd_bus_message_read_basic (m, 's', &finger_name) < 0) {
|
if (sd_bus_message_read_basic (m, 's', &finger_name) < 0) {
|
||||||
pam_syslog (data->pamh, LOG_ERR, "Failed to parse VerifyFingerSelected signal: %m");
|
pam_syslog (data->pamh, LOG_ERR, "Failed to parse VerifyFingerSelected signal: %d", errno);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -558,7 +558,7 @@ static int do_auth(pam_handle_t *pamh, const char *username)
|
|||||||
sd_bus *bus = NULL;
|
sd_bus *bus = NULL;
|
||||||
|
|
||||||
if (sd_bus_open_system (&bus) < 0) {
|
if (sd_bus_open_system (&bus) < 0) {
|
||||||
pam_syslog (pamh, LOG_ERR, "Error with getting the bus: %m");
|
pam_syslog (pamh, LOG_ERR, "Error with getting the bus: %d", errno);
|
||||||
return PAM_AUTHINFO_UNAVAIL;
|
return PAM_AUTHINFO_UNAVAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user