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

login
register
mail settings
Submitter Peter Crosthwaite
Date April 7, 2013, 5:53 a.m.
Message ID <5a0fa6a74f61429fc41236f16746d2e81ade2288.1365313801.git.peter.crosthwaite@xilinx.com>
Download mbox | patch
Permalink /patch/234461/
State New
Headers show

Comments

Peter Crosthwaite - April 7, 2013, 5:53 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 d853a2e..efcc7f4 100644
--- a/hw/m25p80.c
+++ b/hw/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);
     }