Commit d5132e87 authored by wuzhouhui's avatar wuzhouhui Committed by Ben Walker
Browse files

bdev/raid: raid_bdev_add_base_devices: fix wrong param of spdk_strerror



And add newline at the end, by the way.

Change-Id: I0b3b72c066e5bb161d9e7212367c8ff663a95b27
Signed-off-by: default avatarwuzhouhui <wuzhouhui@kingsoft.com>
Reviewed-on: https://review.gerrithub.io/427330


Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent b77ac822
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1587,9 +1587,9 @@ raid_bdev_add_base_devices(struct raid_bdev_config *raid_cfg)

		_rc = raid_bdev_add_base_device(raid_cfg, base_bdev, i);
		if (_rc != 0) {
			SPDK_ERRLOG("Failed to add base bdev %s to RAID bdev %s: %s",
			SPDK_ERRLOG("Failed to add base bdev %s to RAID bdev %s: %s\n",
				    raid_cfg->base_bdev[i].name, raid_cfg->name,
				    spdk_strerror(-rc));
				    spdk_strerror(-_rc));
			if (rc == 0) {
				rc = _rc;
			}