From b9ccb39c48870b0a84e19e816932d08b3304c1f4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 5 Apr 2006 03:51:43 +0000 Subject: r14916: print errno so I can work out why OpenBSD is failing the test for tdb in the build farm. msync() is failing. (This used to be commit 4c3f3c414135c2b8fa9ea11a156246b56285b84f) --- source4/lib/tdb/common/transaction.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source4/lib/tdb/common/transaction.c b/source4/lib/tdb/common/transaction.c index 6960a02ad8..aa54c4ae3c 100644 --- a/source4/lib/tdb/common/transaction.c +++ b/source4/lib/tdb/common/transaction.c @@ -544,7 +544,8 @@ static int transaction_sync(struct tdb_context *tdb, tdb_off_t offset, tdb_len_t if (msync(moffset + (char *)tdb->map_ptr, length + (offset - moffset), MS_SYNC) != 0) { tdb->ecode = TDB_ERR_IO; - TDB_LOG((tdb, 0, "tdb_transaction: msync failed\n")); + TDB_LOG((tdb, 0, "tdb_transaction: msync failed - %s\n", + strerror(errno))); return -1; } } -- cgit