From: Riku Voipio Date: Thu, 3 Dec 2009 13:56:05 +0000 (+0200) Subject: Give a error when running out of iomem areas. X-Git-Tag: v0.13.0-rc0~1886 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c6703b4761c4df633997a37d52641b20a0b6cf45;p=thirdparty%2Fqemu.git 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 Signed-off-by: Aurelien Jarno --- diff --git a/exec.c b/exec.c index 44c34e6422d..21a02f6c456 100644 --- a/exec.c +++ b/exec.c @@ -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; }