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: WangHaiLiang <hailiangx.e.wang@intel.com>
Reviewed-on: https://review.gerrithub.io/431992
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
WangHaiLiang 2018-11-05 16:12:35 +08:00 committed by Jim Harris
parent c9a67a0037
commit 9b72146b4e

View File

@ -193,8 +193,9 @@ 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",
total_lba_size, (uint32_t) gpt->total_sectors - 1);
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;
}
} else {