Give a error when running out of iomem areas.

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>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
Riku Voipio 2009-12-03 15:56:05 +02:00 committed by Aurelien Jarno
parent 9a0c6a3373
commit c6703b4761
1 changed files with 1 additions and 1 deletions

2
exec.c
View File

@ -2919,7 +2919,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;
}