diff options
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; } |