hostmem: add more information in error messages
authorZhang Yi <yi.z.zhang@linux.intel.com>
Wed, 2 Jan 2019 05:26:24 +0000 (13:26 +0800)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 28 Jan 2019 17:52:05 +0000 (15:52 -0200)
commit21d1683690e048663855dd6feb3034ab7c5039bc
treecf82a89d43e63a6dbe896368f4cd6fd221c767b7
parent2920bd644e8c2d21636a959a0cc717600913ad03
hostmem: add more information in error messages

When there are multiple memory backends in use, including the object type
and property name in the error message can help users to locate the error.

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Signed-off-by: Zhang Yi <yi.z.zhang@linux.intel.com>
Message-Id: <97d9193875747d8378c05b9e3b3cb39c1b7d2b4e.1546399191.git.yi.z.zhang@linux.intel.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
[ehabkost: reword commit message]
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
backends/hostmem-file.c
backends/hostmem.c