Commit 9b72146b authored by WangHaiLiang's avatar WangHaiLiang Committed by Jim Harris
Browse files

bdev/gpt: replace a ERRLOG with DEBUGLOG in check_mbr



Fix issue #478.
spdk_vhost reports "GPT Primary MBR size does not equal" sometimes,
DEBUGLOG will be better here.

Change-Id: I7402c606a30022afe1ade9db95778c6d1d58f8b9
Signed-off-by: default avatarWangHaiLiang <hailiangx.e.wang@intel.com>
Reviewed-on: https://review.gerrithub.io/431992


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
parent c9a67a00
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -193,7 +193,8 @@ spdk_gpt_check_mbr(struct spdk_gpt *gpt)
		total_lba_size = from_le32(&mbr->partitions[primary_partition].size_lba);
		if ((total_lba_size != ((uint32_t) gpt->total_sectors - 1)) &&
		    (total_lba_size != 0xFFFFFFFF)) {
			SPDK_ERRLOG("GPT Primary MBR size does not equal: (record_size %u != actual_size %u)!\n",
			SPDK_DEBUGLOG(SPDK_LOG_GPT_PARSE,
				      "GPT Primary MBR size does not equal: (record_size %u != actual_size %u)!\n",
				      total_lba_size, (uint32_t) gpt->total_sectors - 1);
			return -1;
		}