Explorar el Código

Print image physical location in registration message.

tags/v0.9.3
Michael Brown hace 18 años
padre
commit
5c72d9c4e0
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3
    1
      src/core/image.c

+ 3
- 1
src/core/image.c Ver fichero

@@ -58,7 +58,9 @@ int register_image ( struct image *image ) {
58 58
 
59 59
 	/* Add to image list */
60 60
 	list_add_tail ( &image->list, &images );
61
-	DBGC ( image, "IMAGE %p registered as %s\n", image, image->name );
61
+	DBGC ( image, "IMAGE %p at [%lx,%lx) registered as %s\n",
62
+	       image, user_to_phys ( image->data, 0 ),
63
+	       user_to_phys ( image->data, image->len ), image->name );
62 64
 
63 65
 	return 0;
64 66
 }

Loading…
Cancelar
Guardar