i915resolution.c: cast to 64-bit sized ptr
authorMatt Fleming <matt.fleming@intel.com>
Fri, 19 Oct 2012 16:36:24 +0000 (17:36 +0100)
committerMatt Fleming <matt.fleming@intel.com>
Mon, 5 Nov 2012 12:51:38 +0000 (12:51 +0000)
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/lib/sys/vesa/efi/i915resolution.c

index 6ebb04d..ac66175 100644 (file)
@@ -443,7 +443,7 @@ static vbios_map * open_vbios(void)
     }
     else {
         debug("Unable to determine bios type.\r\n");
-        debug("Mode Table Offset: $C0000 + $%x\r\n", ((unsigned int)map->mode_table) - ((unsigned int)map->bios_ptr));
+        debug("Mode Table Offset: $C0000 + $%x\r\n", ((unsigned long)map->mode_table) - ((unsigned long)map->bios_ptr));
         debug("Mode Table Entries: %u\r\n", map->mode_table_size);
        bad_marker(0x15);
        return NULL;