From: Pavel Begunkov <asml.silence@gmail.com>
To: io-uring@vger.kernel.org
Cc: asml.silence@gmail.com
Subject: [PATCH liburing 4/4] examples/zcrx: be more verbose on verification failure
Date: Thu, 1 May 2025 19:56:38 +0100 [thread overview]
Message-ID: <82dca90f38375622d328f663f6281be265d423a5.1746125619.git.asml.silence@gmail.com> (raw)
In-Reply-To: <cover.1746125619.git.asml.silence@gmail.com>
Print additional info if data verification fails.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
---
examples/zcrx.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/examples/zcrx.c b/examples/zcrx.c
index d31c5b36..6b06e4fa 100644
--- a/examples/zcrx.c
+++ b/examples/zcrx.c
@@ -216,7 +216,8 @@ static void verify_data(char *data, size_t size, unsigned long seq)
char expected = 'a' + (seq + i) % 26;
if (data[i] != expected)
- t_error(1, 0, "payload mismatch at %i", i);
+ t_error(1, 0, "payload mismatch at %i: expected %i vs got %i, seq %li",
+ i, expected, data[i], seq);
}
}
--
2.48.1
prev parent reply other threads:[~2025-05-01 18:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-01 18:56 [PATCH liburing 0/4] add more features to the zcrx benchmark Pavel Begunkov
2025-05-01 18:56 ` [PATCH liburing 1/4] examples/send-zc: warn about data reordering Pavel Begunkov
2025-05-01 18:56 ` [PATCH liburing 2/4] examples/send-zc: option to bind socket to device Pavel Begunkov
2025-05-01 18:56 ` [PATCH liburing 3/4] examples/send-zc: optionally fill data with a pattern Pavel Begunkov
2025-05-02 15:26 ` Jens Axboe
2025-05-02 15:58 ` Pavel Begunkov
2025-05-01 18:56 ` Pavel Begunkov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=82dca90f38375622d328f663f6281be265d423a5.1746125619.git.asml.silence@gmail.com \
--to=asml.silence@gmail.com \
--cc=io-uring@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox