From: Hollis Blanchard Date: Thu, 05 Aug 2010 00:21:35 +0000 Subject: [PATCH 2/4] ppc4xx: correct SDRAM controller warning message condition Message-Id: <1280967697-1875-3-git-send-email-hollis@penguinppc.org> List-Id: References: <1280967697-1875-1-git-send-email-hollis@penguinppc.org> In-Reply-To: <1280967697-1875-1-git-send-email-hollis@penguinppc.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: qemu-devel@nongnu.org Cc: kvm-ppc@vger.kernel.org The message "Truncating memory to %d MiB to fit SDRAM controller limits" should be displayed only when a user chooses an amount of RAM which can't be represented by the PPC 4xx SDRAM controller (e.g. 129MB, which would only be valid if the controller supports a bank size of 1MB). Signed-off-by: Hollis Blanchard --- hw/ppc4xx_devs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/ppc4xx_devs.c b/hw/ppc4xx_devs.c index b15db81..be130c4 100644 --- a/hw/ppc4xx_devs.c +++ b/hw/ppc4xx_devs.c @@ -684,7 +684,7 @@ ram_addr_t ppc4xx_sdram_adjust(ram_addr_t ram_size, int nr_banks, } ram_size -= size_left; - if (ram_size) + if (size_left) printf("Truncating memory to %d MiB to fit SDRAM controller limits.\n", (int)(ram_size >> 20)); -- 1.7.2