summaryrefslogtreecommitdiff
path: root/src/responder/common
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-07-17 16:18:04 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-11 19:44:54 +0200
commit10a9ff0c9b4f347ec24dab887a538b37274ee498 (patch)
treefb69605e51d9367833fcc49d02dcb68f36fa0d52 /src/responder/common
parentec0b19bd6d25e3f4afea06b28c132b602bbff180 (diff)
downloadsssd-10a9ff0c9b4f347ec24dab887a538b37274ee498.tar.gz
sssd-10a9ff0c9b4f347ec24dab887a538b37274ee498.tar.bz2
sssd-10a9ff0c9b4f347ec24dab887a538b37274ee498.zip
Fix formating of variables with type: rlim_t
Diffstat (limited to 'src/responder/common')
-rw-r--r--src/responder/common/responder_common.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/responder/common/responder_common.c b/src/responder/common/responder_common.c
index 58a92f97..908031a0 100644
--- a/src/responder/common/responder_common.c
+++ b/src/responder/common/responder_common.c
@@ -999,7 +999,7 @@ void responder_set_fd_limit(rlim_t fd_limit)
limret = setrlimit(RLIMIT_NOFILE, &new_limit);
if (limret == 0) {
DEBUG(SSSDBG_CONF_SETTINGS,
- ("Maximum file descriptors set to [%d]\n",
+ ("Maximum file descriptors set to [%"SPRIrlim"]\n",
new_limit.rlim_cur));
return;
}
@@ -1012,7 +1012,7 @@ void responder_set_fd_limit(rlim_t fd_limit)
limret = getrlimit(RLIMIT_NOFILE, &current_limit);
if (limret == 0) {
DEBUG(SSSDBG_TRACE_INTERNAL,
- ("Current fd limit: [%d]\n",
+ ("Current fd limit: [%"SPRIrlim"]\n",
current_limit.rlim_cur));
/* Choose the lesser of the requested and the hard limit */
if (current_limit.rlim_max < fd_limit) {
@@ -1025,12 +1025,12 @@ void responder_set_fd_limit(rlim_t fd_limit)
limret = setrlimit(RLIMIT_NOFILE, &new_limit);
if (limret == 0) {
DEBUG(SSSDBG_CONF_SETTINGS,
- ("Maximum file descriptors set to [%d]\n",
+ ("Maximum file descriptors set to [%"SPRIrlim"]\n",
new_limit.rlim_cur));
} else {
DEBUG(SSSDBG_CRIT_FAILURE,
- ("Could not set new fd limits. Proceeding with [%d]\n",
- current_limit.rlim_cur));
+ ("Could not set new fd limits. Proceeding with "
+ "[%"SPRIrlim"]\n", current_limit.rlim_cur));
}
} else {
DEBUG(SSSDBG_CRIT_FAILURE,