diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2012-12-16 15:25:57 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2012-12-16 15:25:57 +0000 |
commit | 4ca8f7727337fa251a4f54539f8b9b208fdf24f7 (patch) | |
tree | ef015b8ce7b0ac57ea9169acd408dd1e8c32b5c3 /nslcd | |
parent | 6a74d8dda1ea515c59aebbc1aa0b3093df61244c (diff) |
make nslcd actions hexadecimal values with some structure to make debugging easier
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1866 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd')
-rw-r--r-- | nslcd/nslcd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nslcd/nslcd.c b/nslcd/nslcd.c index 68312fd..0ea7bb2 100644 --- a/nslcd/nslcd.c +++ b/nslcd/nslcd.c @@ -377,7 +377,7 @@ static int read_header(TFILE *fp,int32_t *action) READ_INT32(fp,protocol); if (protocol!=(int32_t)NSLCD_VERSION) { - log_log(LOG_DEBUG,"wrong nslcd version id (%d)",(int)protocol); + log_log(LOG_DEBUG,"invalid nslcd version id: 0x%08x",(unsigned int)protocol); return -1; } /* read the request type */ @@ -457,7 +457,7 @@ static void handleconnection(int sock,MYLDAP_SESSION *session) case NSLCD_ACTION_PAM_SESS_C: (void)nslcd_pam_sess_c(fp,session); break; case NSLCD_ACTION_PAM_PWMOD: (void)nslcd_pam_pwmod(fp,session,uid); break; default: - log_log(LOG_WARNING,"invalid request id: %ud",(unsigned int)action); + log_log(LOG_WARNING,"invalid request id: 0x%08x",(unsigned int)action); break; } /* we're done with the request */ |