X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flogin%2Fpam_systemd.c;h=d7a708fd0a8e05ebb7c964ef5c80d0dad8c22bdc;hb=0a6f50c0afdfc434b492493bd9efab20cbee8623;hp=111e2b7c4c83f2fc1ddb4e129c3a10d1f69af1da;hpb=e3afaf6b8e540d4c0dc5a7f0d5178ce29c1ac2a5;p=elogind.git diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c index 111e2b7c4..d7a708fd0 100644 --- a/src/login/pam_systemd.c +++ b/src/login/pam_systemd.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include @@ -345,7 +344,7 @@ _public_ PAM_EXTERN int pam_sm_open_session( } if (seat && !streq(seat, "seat0") && vtnr != 0) { - pam_syslog(handle, LOG_DEBUG, "Ignoring vtnr %d for %s which is not seat0", vtnr, seat); + pam_syslog(handle, LOG_DEBUG, "Ignoring vtnr %"PRIu32" for %s which is not seat0", vtnr, seat); vtnr = 0; } @@ -368,7 +367,7 @@ _public_ PAM_EXTERN int pam_sm_open_session( if (debug) pam_syslog(handle, LOG_DEBUG, "Asking logind to create session: " - "uid=%u pid=%u service=%s type=%s class=%s desktop=%s seat=%s vtnr=%u tty=%s display=%s remote=%s remote_user=%s remote_host=%s", + "uid="UID_FMT" pid="PID_FMT" service=%s type=%s class=%s desktop=%s seat=%s vtnr=%"PRIu32" tty=%s display=%s remote=%s remote_user=%s remote_host=%s", pw->pw_uid, getpid(), strempty(service), type, class, strempty(desktop),