diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2013-07-17 13:00:49 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-09-11 19:44:54 +0200 |
commit | 71e234151ddc6b50576364c30bda2b72264b1083 (patch) | |
tree | d03aa4a2f86a147ee0083a021312e4f12fac2a4e /src/util | |
parent | 2b68335643d7b48225d4ab15ac116afcbf279505 (diff) | |
download | sssd-71e234151ddc6b50576364c30bda2b72264b1083.tar.gz sssd-71e234151ddc6b50576364c30bda2b72264b1083.tar.bz2 sssd-71e234151ddc6b50576364c30bda2b72264b1083.zip |
Fix formating of variables with type: ssize_t
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/backup_file.c | 2 | ||||
-rw-r--r-- | src/util/child_common.c | 3 | ||||
-rw-r--r-- | src/util/server.c | 4 |
3 files changed, 5 insertions, 4 deletions
diff --git a/src/util/backup_file.c b/src/util/backup_file.c index edbf868c..316c1cfe 100644 --- a/src/util/backup_file.c +++ b/src/util/backup_file.c @@ -103,7 +103,7 @@ int backup_file(const char *src_file, int dbglvl) } if (written != numread) { - DEBUG(dbglvl, ("Wrote %d bytes expected %d bytes\n", + DEBUG(dbglvl, ("Wrote %zd bytes expected %zd bytes\n", written, numread)); ret = EIO; goto done; diff --git a/src/util/child_common.c b/src/util/child_common.c index 2bd2bbc3..28358606 100644 --- a/src/util/child_common.c +++ b/src/util/child_common.c @@ -484,7 +484,8 @@ static void read_pipe_handler(struct tevent_context *ev, return; } else { - DEBUG(1, ("unexpected return value of read [%d].\n", size)); + DEBUG(SSSDBG_CRIT_FAILURE, + ("unexpected return value of read [%zd].\n", size)); tevent_req_error(req, EINVAL); return; } diff --git a/src/util/server.c b/src/util/server.c index 9d3c9cb0..a33207b3 100644 --- a/src/util/server.c +++ b/src/util/server.c @@ -147,7 +147,7 @@ int pidfile(const char *path, const char *name) int fd; int ret, err; ssize_t len; - ssize_t size; + size_t size; ssize_t written; ssize_t pidlen = sizeof(pid_str) - 1; @@ -227,7 +227,7 @@ int pidfile(const char *path, const char *name) if (written != size) { DEBUG(SSSDBG_CRIT_FAILURE, - ("Wrote %d bytes expected %d\n", written, size)); + ("Wrote %zd bytes expected %zu\n", written, size)); close(fd); return EIO; } |