summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-01-29 23:53:49 +0100
committerGünther Deschner <gd@samba.org>2008-01-29 23:53:49 +0100
commit69b745ec32672762c89fffc77b860eab17c95761 (patch)
tree271eb16503cfb1ac2591e588b8cb50a61013d9f1
parent2c01540a763f19c2d4c658607efb16285a1e25a5 (diff)
downloadsamba-69b745ec32672762c89fffc77b860eab17c95761.tar.gz
Fix build warning.
Guenther
-rw-r--r--source/tdb/common/io.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/tdb/common/io.c b/source/tdb/common/io.c
index 01ada7647b9..4b7e33ab659 100644
--- a/source/tdb/common/io.c
+++ b/source/tdb/common/io.c
@@ -95,7 +95,7 @@ static int tdb_write(struct tdb_context *tdb, tdb_off_t off,
/* try once more */
TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_write: wrote only "
"%d of %d bytes at %d, trying once more\n",
- written, len, off));
+ (uint32_t)written, len, off));
errno = ENOSPC;
written = pwrite(tdb->fd, (void *)((char *)buf+written),
len-written,
@@ -275,11 +275,12 @@ static int tdb_expand_file(struct tdb_context *tdb, tdb_off_t size, tdb_off_t ad
return -1;
} else if (written == -1) {
TDB_LOG((tdb, TDB_DEBUG_FATAL, "expand_file write of "
- "%d bytes failed (%s)\n", n, strerror(errno)));
+ "%d bytes failed (%s)\n", (uint32_t)n, strerror(errno)));
return -1;
} else if (written != n) {
TDB_LOG((tdb, TDB_DEBUG_WARNING, "expand_file: wrote "
- "only %d of %d bytes - retrying\n", written,n));
+ "only %d of %d bytes - retrying\n",
+ (uint32_t)written, (uint32_t)n));
}
addition -= written;
size += written;