From 9b72146b4eb34c418c96a2be43d15f46607d76fb Mon Sep 17 00:00:00 2001 From: WangHaiLiang Date: Mon, 5 Nov 2018 16:12:35 +0800 Subject: [PATCH] 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 Reviewed-on: https://review.gerrithub.io/431992 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Ben Walker Chandler-Test-Pool: SPDK Automated Test System --- lib/bdev/gpt/gpt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/bdev/gpt/gpt.c b/lib/bdev/gpt/gpt.c index 0e830cdd3..4988ec4ce 100644 --- a/lib/bdev/gpt/gpt.c +++ b/lib/bdev/gpt/gpt.c @@ -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 {