Fix elf loader range checking
[qemu] / linux-user / flatload.c
index ea810d5..8eba5a8 100644 (file)
@@ -14,7 +14,8 @@
  *
  *  You should have received a copy of the GNU General Public License
  *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *  Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
+ *  MA 02110-1301, USA.
  *
  *      Copyright (C) 2006 CodeSourcery.
  *     Copyright (C) 2000-2003 David McCullough <davidm@snapgear.com>
@@ -46,9 +47,9 @@
 //#define DEBUG
 
 #ifdef DEBUG
-#define        DBG_FLT(a...)   printf(a)
+#define        DBG_FLT(...)    printf(__VA_ARGS__)
 #else
-#define        DBG_FLT(a...)
+#define        DBG_FLT(...)
 #endif
 
 #define flat_reloc_valid(reloc, size)             ((reloc) <= (size))