Patchwork [v1,4/4] m25p80: Add debug message for no bdrv

login
register
mail settings
Submitter Peter Crosthwaite
Date April 3, 2013, 4:09 a.m.
Message ID <85c9e7a919a37a94fd01c5165aa20849c08530cc.1364961975.git.peter.crosthwaite@xilinx.com>
Download mbox | patch
Permalink /patch/233218/
State New
Headers show

Comments

Peter Crosthwaite - April 3, 2013, 4:09 a.m.
If there is no backing bdrv, let the debugging developer know about it.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
---

 hw/m25p80.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/m25p80.c b/hw/m25p80.c
index f8aa0e9..812cae0 100644
--- a/hw/m25p80.c
+++ b/hw/m25p80.c
@@ -605,6 +605,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);
     }