From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHxZr-0004JB-2n for qemu-devel@nongnu.org; Thu, 14 Aug 2014 12:08:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XHxZl-0001oY-9f for qemu-devel@nongnu.org; Thu, 14 Aug 2014 12:08:35 -0400 Date: Thu, 14 Aug 2014 18:09:00 +0200 From: "Michael S. Tsirkin" Message-ID: <1408032488-11096-7-git-send-email-mst@redhat.com> References: <1408032488-11096-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1408032488-11096-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PULL 06/12] pc-dimm: fix up error message List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Peter Crosthwaite , qemu-stable@nongnu.org, Vasilis Liaskovitis , Anthony Liguori , Igor Mammedov - int should be printed using %d - print actual wrong value for property Cc: qemu-stable@nongnu.org Signed-off-by: Michael S. Tsirkin --- hw/mem/pc-dimm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/mem/pc-dimm.c b/hw/mem/pc-dimm.c index 92e276f..5bfc5b7 100644 --- a/hw/mem/pc-dimm.c +++ b/hw/mem/pc-dimm.c @@ -253,8 +253,9 @@ static void pc_dimm_realize(DeviceState *dev, Error **errp) return; } if (dimm->node >= nb_numa_nodes) { - error_setg(errp, "'" PC_DIMM_NODE_PROP - "' exceeds numa node number: %" PRId32, nb_numa_nodes); + error_setg(errp, "'DIMM property " PC_DIMM_NODE_PROP " has value %" + PRIu32 "' which exceeds the number of numa nodes: %d", + dimm->node, nb_numa_nodes); return; } } -- MST