summaryrefslogtreecommitdiff
path: root/test/probe.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-02-24 07:12:47 -0700
committerJens Axboe <axboe@kernel.dk>2021-02-24 07:12:47 -0700
commitd84d90108a1de9caf7636adcc523d451a56dd275 (patch)
tree117e67c2d75b314dcfdd37db8590302e2925099d /test/probe.c
parentb6dfe23e68bfa23e56a2a8798f9788708892abb2 (diff)
downloadliburing-d84d90108a1de9caf7636adcc523d451a56dd275.tar.gz
liburing-d84d90108a1de9caf7636adcc523d451a56dd275.tar.bz2
helpers: prefix any helper with t_ instead of io_uring_
As brought up in an issue, this makes it confusing as to what could potentially be liburing functions. Make it clear that these are test helpers, hence use the t_ prefix for them. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'test/probe.c')
-rw-r--r--test/probe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/probe.c b/test/probe.c
index 0881240..c7fc053 100644
--- a/test/probe.c
+++ b/test/probe.c
@@ -68,7 +68,7 @@ static int test_probe(struct io_uring *ring)
int ret;
len = sizeof(*p) + 256 * sizeof(struct io_uring_probe_op);
- p = io_uring_calloc(1, len);
+ p = t_calloc(1, len);
ret = io_uring_register_probe(ring, p, 0);
if (ret == -EINVAL) {
fprintf(stdout, "Probe not supported, skipping\n");