From 658f72128ff6950c6a03994198b4464a273fb300 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 6 Oct 2011 21:07:27 +0200 Subject: s3:dbwrap: change dbwrap_fetch_uint32() to NTSTATUS return type (instead of bool) for consistency and better error propagation --- source3/torture/torture.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'source3/torture/torture.c') diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 0d81602a04..1e0983a5e1 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -8595,8 +8595,10 @@ static bool run_local_dbtrans(int dummy) break; } - if (!dbwrap_fetch_uint32(db, "transtest", &val)) { - printf(__location__ "dbwrap_fetch_uint32 failed\n"); + status = dbwrap_fetch_uint32(db, "transtest", &val); + if (!NT_STATUS_IS_OK(status)) { + printf(__location__ "dbwrap_fetch_uint32 failed: %s\n", + nt_errstr(status)); break; } @@ -8606,8 +8608,10 @@ static bool run_local_dbtrans(int dummy) } } - if (!dbwrap_fetch_uint32(db, "transtest", &val2)) { - printf(__location__ "dbwrap_fetch_uint32 failed\n"); + status = dbwrap_fetch_uint32(db, "transtest", &val2); + if (!NT_STATUS_IS_OK(status)) { + printf(__location__ "dbwrap_fetch_uint32 failed: %s\n", + nt_errstr(status)); break; } -- cgit