From: Jeremy Allison Date: Fri, 25 Jun 2021 03:05:01 +0000 (-0700) Subject: s4: torture: Improve error messages in check_stream() and read_stream() to include... X-Git-Tag: tevent-0.11.0~202 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d78398beea47b25d3e701db23933280cf1e1919;p=thirdparty%2Fsamba.git s4: torture: Improve error messages in check_stream() and read_stream() to include the filename and NTSTATUS. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source4/torture/vfs/fruit.c b/source4/torture/vfs/fruit.c index b3fd50a3132..fa758794368 100644 --- a/source4/torture/vfs/fruit.c +++ b/source4/torture/vfs/fruit.c @@ -1827,7 +1827,8 @@ static bool check_stream(struct smb2_tree *tree, TALLOC_FREE(full_name); return true; } - torture_comment(tctx, "Unable to open stream %s\n", full_name); + torture_comment(tctx, "Unable to open stream %s: %s\n", + full_name, nt_errstr(status)); TALLOC_FREE(full_name); return false; } @@ -1901,8 +1902,8 @@ static ssize_t read_stream(struct smb2_tree *tree, status = smb2_create(tree, mem_ctx, &create); if (!NT_STATUS_IS_OK(status)) { - torture_comment(tctx, "Unable to open stream %s\n", - full_name); + torture_comment(tctx, "Unable to open stream %s: %s\n", + full_name, nt_errstr(status)); return -1; }