ut/bdev: fix histogram buffer parameters
These buffers weren't actually used, but "buf" is an array, so we should just pass buf, not &buf. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I9d73a73b138d2bd9c14172c58b1825cf83532b4f Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478119 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com> Community-CI: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
96abfe63ef
commit
1d94a0b0e1
@ -2123,14 +2123,14 @@ bdev_histograms(void)
|
||||
|
||||
CU_ASSERT(g_count == 0);
|
||||
|
||||
rc = spdk_bdev_write_blocks(desc, ch, &buf, 0, 1, io_done, NULL);
|
||||
rc = spdk_bdev_write_blocks(desc, ch, buf, 0, 1, io_done, NULL);
|
||||
CU_ASSERT(rc == 0);
|
||||
|
||||
spdk_delay_us(10);
|
||||
stub_complete_io(1);
|
||||
poll_threads();
|
||||
|
||||
rc = spdk_bdev_read_blocks(desc, ch, &buf, 0, 1, io_done, NULL);
|
||||
rc = spdk_bdev_read_blocks(desc, ch, buf, 0, 1, io_done, NULL);
|
||||
CU_ASSERT(rc == 0);
|
||||
|
||||
spdk_delay_us(10);
|
||||
|
Loading…
Reference in New Issue
Block a user