Patchwork [4/7] Give a error when running out of iomem areas.

login
register
mail settings
Submitter riku.voipio@nokia.com
Date Dec. 3, 2009, 1:56 p.m.
Message ID <ebd047b9dd4d99032423c792f94fefa943754a46.1259836046.git.riku.voipio@nokia.com>
Download mbox | patch
Permalink /patch/40260/
State New
Headers show

Comments

riku.voipio@nokia.com - Dec. 3, 2009, 1:56 p.m.
From: Riku Voipio <riku.voipio@nokia.com>

The limit of iomem areas is quite low. Without the
debug print, it is quite hard to figure out why more
devices are not getting registered.

Signed-off-by: Riku Voipio <riku.voipio@nokia.com>
---
 exec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/exec.c b/exec.c
index 3f33b08..befbcb7 100644
--- a/exec.c
+++ b/exec.c
@@ -2913,7 +2913,7 @@  static int get_free_io_mem_idx(void)
             io_mem_used[i] = 1;
             return i;
         }
-
+    fprintf(stderr, "RAN out out io_mem_idx, max %d !\n", IO_MEM_NB_ENTRIES);
     return -1;
 }