diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2014-10-10 23:43:44 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2014-10-10 23:43:44 +0200 |
commit | 42621223e13b843d8945ce2f7fcdc663bf351b77 (patch) | |
tree | f238adbc3dc37f33c29fe1b844f594bbcdec1557 | |
parent | 1d3b19b1ecd3b10f36e8925e8a752a28e3e74b56 (diff) |
Fix format string
Thanks Jianhai Luan.
-rw-r--r-- | nslcd/nslcd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nslcd/nslcd.c b/nslcd/nslcd.c index a0c67a6..2a12f68 100644 --- a/nslcd/nslcd.c +++ b/nslcd/nslcd.c @@ -782,19 +782,19 @@ int main(int argc, char *argv[]) daemonize_ready(EXIT_FAILURE, "cannot setgid()\n"); exit(EXIT_FAILURE); } - log_log(LOG_DEBUG, "setgid(%ul) done", (unsigned long int)nslcd_cfg->gid); + log_log(LOG_DEBUG, "setgid(%lu) done", (unsigned long int)nslcd_cfg->gid); } /* change to nslcd uid */ if (nslcd_cfg->uid != NOUID) { if (setuid(nslcd_cfg->uid) != 0) { - log_log(LOG_ERR, "cannot setuid(%ul): %s", + log_log(LOG_ERR, "cannot setuid(%lu): %s", (unsigned long int)nslcd_cfg->uid, strerror(errno)); daemonize_ready(EXIT_FAILURE, "cannot setuid()\n"); exit(EXIT_FAILURE); } - log_log(LOG_DEBUG, "setuid(%ul) done", (unsigned long int)nslcd_cfg->uid); + log_log(LOG_DEBUG, "setuid(%lu) done", (unsigned long int)nslcd_cfg->uid); } /* start worker threads */ log_log(LOG_INFO, "accepting connections"); |