From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Date: Tue, 16 Apr 2013 00:34:50 +0000 (+1000)
Subject: m25p80: Add debug message for no bdrv
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=095b9c4860b1351e4a0322e43708f39c79c1f34b;p=qemu.git

m25p80: Add debug message for no bdrv

If there is no backing bdrv, let the debugging developer know about it.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
---

diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c
index d853a2e93b..efcc7f4c83 100644
--- a/hw/block/m25p80.c
+++ b/hw/block/m25p80.c
@@ -606,6 +606,7 @@ static int m25p80_init(SSISlave *ss)
             return 1;
         }
     } else {
+        DB_PRINT_L(0, "No BDRV - binding to RAM\n");
         memset(s->storage, 0xFF, s->size);
     }